Define ScriptPurpose & ScriptContext types in prelude, fix codegen new v3 wrapper.

This commit is contained in:
KtorZ
2024-08-14 18:52:50 +02:00
parent 03a348040b
commit 972e9bd763
4 changed files with 374 additions and 148 deletions

View File

@@ -294,7 +294,7 @@ mod tests {
let validators = Validator::from_checked_module(&modules, &mut generator, validator, def, &PlutusVersion::default());
if validators.len() > 1 {
if validators.len() > 2 {
panic!("Multi-validator given to test bench. Don't do that.")
}
@@ -395,7 +395,7 @@ mod tests {
assert_validator!(
r#"
validator thing {
mint(redeemer: Data, ctx: Data) {
mint(redeemer: Data, policy_id: Data, transaction: Data) {
True
}
}