feat: add map support and tuple deconstruction in let
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
use sample
|
||||
|
||||
pub fn spend(datum: sample.Datum, rdmr: sample.Redeemer, _ctx: Nil) -> Bool {
|
||||
let x = #(datum, rdmr, #[244])
|
||||
let x = #(datum, #[244])
|
||||
|
||||
datum.random == rdmr.signer
|
||||
let y = [#(#[222], #[222]), #(#[233], #[52])]
|
||||
|
||||
let [z, f, ..g] = y
|
||||
|
||||
let #(a, b) = x
|
||||
|
||||
z == #(#[222], #[222])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user