feat:list construction, no pairs yet

This commit is contained in:
Kasey White
2022-11-20 17:06:08 -05:00
committed by Lucas
parent 929f82a249
commit f09a3bd121
2 changed files with 91 additions and 8 deletions

View File

@@ -34,9 +34,7 @@ pub fn spend(
ctx: spend.ScriptContext,
) -> Bool {
let x = datum.rdmr
when x is {
sample.Buy { fin, .. } -> fin > 0
sample.Sell { find, .. } -> find > 0
sample.Hold(some) -> some > 0
}
let y = [datum.fin, 2, 3]
let z = [1, ..y]
True
}