feat: change project structure

This commit is contained in:
rvcas
2022-10-24 00:03:02 -04:00
committed by Lucas
parent 825783ca61
commit a41d05f7b6
4 changed files with 21 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
pub type ScriptContext {
thing: String
}

View File

@@ -1,3 +1,4 @@
use sample
use sample/syntax.{append}
pub type Datum {
@@ -9,7 +10,7 @@ pub type Redeemer {
Sell
}
pub fn validate(datum: Datum, rdmr: Redeemer, ctx: syntax.ScriptContext) -> Bool {
pub fn validate(datum: Datum, rdmr: Redeemer, ctx: sample.ScriptContext) -> Bool {
let thing = if True {
3
} else {