fix: properly capture empty lines
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user