checkpoint commit

This commit is contained in:
Kasey White
2022-11-03 05:02:56 -04:00
committed by Lucas
parent d8f3ada13e
commit 3cafb2bcbe
7 changed files with 876 additions and 1045 deletions

View File

@@ -3,7 +3,11 @@ pub type ScriptContext {
}
pub type Datum {
something: String,
Datum2{
something: String,
fin: Int
}
None{}
}
pub fn eqInt(a: Int, b: Int) {

View File

@@ -10,17 +10,14 @@ pub type Redeemer {
pub fn spend(datum: sample.Datum, rdmr: Redeemer, ctx: spend.ScriptContext) -> Bool {
let x = "x"
let a = "y"
let b = sample.eqString(x, a)
let c = 1
let y = 1
let d = sample.eqInt(y, c)
if b {
c == 1
} else{
d
let x = 1
let a = when datum is {
sample.Datum2(first, rest) -> rest
sample.None -> 0
}
let b = x
b == 1
}