fix: properly capture empty lines

This commit is contained in:
rvcas
2022-12-15 10:44:41 -05:00
committed by Lucas
parent d9d1310c6d
commit 53bc9aa56f
4 changed files with 14 additions and 10 deletions

View File

@@ -1,10 +1,17 @@
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])
}