figured out the recursion based uplc terms to get item from a list
This commit is contained in:
@@ -9,11 +9,10 @@ pub type Redeemer {
|
||||
|
||||
|
||||
pub fn spend(datum: sample.Datum, rdmr: Redeemer, ctx: spend.ScriptContext) -> Bool {
|
||||
let dat = sample.Datum{..}
|
||||
|
||||
let y = 2
|
||||
let x = 1
|
||||
let a = datum.something
|
||||
let e = dat.something
|
||||
let b = 2
|
||||
b == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user