feat: add module constants except for tuple

This commit is contained in:
Kasey White
2022-12-05 01:45:58 -05:00
committed by Lucas
parent de9302a877
commit 0fda535c50
3 changed files with 100 additions and 28 deletions

View File

@@ -45,3 +45,5 @@ pub fn incrementor(counter: Int, target: Int) -> Int {
incrementor(counter + 1, target)
}
}
pub const big_a = 5

View File

@@ -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
}