feat: add tuples and streamline conversion of types to and from data

This commit is contained in:
Kasey White
2022-12-07 04:35:41 -05:00
committed by Lucas
parent d8ff574045
commit 2f7131e9b8
7 changed files with 643 additions and 325 deletions

View File

@@ -1,5 +1,7 @@
use sample
pub fn spend(datum: sample.Datum, rdmr: sample.Redeemer, _ctx: Nil) -> Bool {
let x = #(datum, rdmr, #[244])
datum.random == rdmr.signer
}