fix up function definitions in the IR

This commit is contained in:
Kasey White
2022-11-30 02:18:37 -05:00
committed by Lucas
parent 02ee129615
commit 8f984ad131
2 changed files with 281 additions and 89 deletions

View File

@@ -51,7 +51,7 @@ pub type Datum {
pub fn spend(datum: Datum, _rdmr: Nil, _ctx: Nil) -> Bool {
when datum is {
Offer { price, thing: t, .. } -> add_one(price) > 0
Offer { price, thing: t, .. } -> add_two(price) > 0
Hold(less) -> less < 0
Sell -> add_one(1) > 1
}