feat: remove the need for # in front of tuples

This commit is contained in:
rvcas
2022-12-12 18:40:51 -05:00
committed by Lucas
parent dfc57b347a
commit a4f6388eca
2 changed files with 23 additions and 32 deletions

View File

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