aiken/examples/sample/validators/swap.ak

21 lines
304 B
Plaintext

use sample
// Stuff
/// Spend validator
pub fn spend(datum: sample.Datum, rdmr: sample.Redeemer, _ctx: Nil) -> Bool {
let x = #(datum, rdmr, #[244])
let y = [#(#[222], #[222]), #(#[233], #[52])]
let [z, f, ..g] = y
let #(a, b, _) = x
z == #(#[222], #[222])
}
test foo() {
1 + 1 == 2
}