aiken/examples/sample/validators/swap.ak

14 lines
237 B
Plaintext

use sample
pub fn spend(datum: sample.Datum, rdmr: sample.Redeemer, _ctx: Nil) -> Bool {
let x = #(datum, #[244])
let y = [#(#[222], #[222]), #(#[233], #[52])]
let [z, f, ..g] = y
let #(a, b) = x
z == #(#[222], #[222])
}