feat: add module constants except for tuple
This commit is contained in:
@@ -45,3 +45,5 @@ pub fn incrementor(counter: Int, target: Int) -> Int {
|
||||
incrementor(counter + 1, target)
|
||||
}
|
||||
}
|
||||
|
||||
pub const big_a = 5
|
||||
@@ -64,8 +64,8 @@ pub fn spend(datum: Datum, _rdmr: Nil, _ctx: Nil) -> Bool {
|
||||
[] -> True
|
||||
[a] -> True
|
||||
[a, b, c] -> True
|
||||
[a, b, c, d, ..e] -> 1 == 1
|
||||
rest -> False
|
||||
[a, b, c, d, ..e] -> sample.big_a == a
|
||||
|
||||
}
|
||||
_ -> False
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user