checkpoint commit
This commit is contained in:
@@ -9,8 +9,8 @@ pub type ScriptContext {
|
||||
}
|
||||
|
||||
pub type Redeem {
|
||||
Buy
|
||||
Sell
|
||||
Buy
|
||||
Sell
|
||||
}
|
||||
|
||||
pub type Datum {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user