diff --git a/crates/aiken-project/src/blueprint/validator.rs b/crates/aiken-project/src/blueprint/validator.rs index f0d6fad59..a870d0fc6 100644 --- a/crates/aiken-project/src/blueprint/validator.rs +++ b/crates/aiken-project/src/blueprint/validator.rs @@ -388,8 +388,8 @@ mod tests { fn mint_basic() { assert_validator!( r#" - validator { - fn mint(redeemer: Data, ctx: Data) { + validator thing { + mint(redeemer: Data, ctx: Data) { True } } @@ -401,8 +401,8 @@ mod tests { fn mint_parameterized() { assert_validator!( r#" - validator(utxo_ref: Int) { - fn mint(redeemer: Data, ctx: Data) { + validator thing(utxo_ref: Int) { + mint(redeemer: Data, ctx: Data) { True } } @@ -444,8 +444,8 @@ mod tests { Abort } - validator { - fn simplified_hydra(datum: State, redeemer: Input, ctx: Data) { + validator simplified_hydra { + spend(datum: State, redeemer: Input, ctx: Data) { True } } @@ -457,8 +457,8 @@ mod tests { fn tuples() { assert_validator!( r#" - validator { - fn tuples(datum: (Int, ByteArray), redeemer: (Int, Int, Int), ctx: Void) { + validator tuples { + spend(datum: (Int, ByteArray), redeemer: (Int, Int, Int), ctx: Void) { True } } @@ -480,8 +480,8 @@ mod tests { Infinite } - validator { - fn generics(redeemer: Either>, ctx: Void) { + validator generics { + spend(redeemer: Either>, ctx: Void) { True } } @@ -512,8 +512,8 @@ mod tests { type UUID { UUID } - validator { - fn list_2_tuples_as_list(redeemer: Dict, ctx: Void) { + validator list_2_tuples_as_list { + mint(redeemer: Dict, ctx: Void) { True } }