remove some warnings and start on when

This commit is contained in:
Kasey White
2022-11-06 18:31:02 -05:00
committed by Lucas
parent 805bf19081
commit 28697586f2
2 changed files with 58 additions and 63 deletions

View File

@@ -14,6 +14,10 @@ pub fn spend(datum: sample.Datum, rdmr: Redeemer, ctx: spend.ScriptContext) -> B
let x = datum.sc.signer
let a = datum.sc.signer.hash
let b = datum.rdmr
let c = 1
c == 1
when b is {
sample.Buy -> True
sample.Sell -> False
}
}