fix up function definitions in the IR
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user