checkpoint commit

This commit is contained in:
Kasey White
2022-11-07 11:37:42 -05:00
committed by Lucas
parent 28697586f2
commit 6950b66b55
4 changed files with 132 additions and 26 deletions

View File

@@ -9,8 +9,8 @@ pub type ScriptContext {
}
pub type Redeem {
Buy
Sell
Buy
Sell
}
pub type Datum {

View File

@@ -16,8 +16,8 @@ pub fn spend(datum: sample.Datum, rdmr: Redeemer, ctx: spend.ScriptContext) -> B
let b = datum.rdmr
when b is {
sample.Buy -> True
sample.Sell -> False
sample.Buy | sample.Sell -> 1 == 1
sample.Sell -> 5 == 1
}
}