misc changes

This commit is contained in:
Kasey White
2023-04-07 02:36:39 -04:00
committed by Kasey
parent f8483da4e0
commit 897011e9bc
11 changed files with 217 additions and 51 deletions

View File

@@ -12,7 +12,7 @@ validator {
assert_outputs(ctx.transaction),
assert_fee(ctx.transaction),
]
|> list.and
|> list.and
}
}
@@ -28,7 +28,8 @@ fn assert_purpose(purpose) {
ref.transaction_id == TransactionId(
#"0000000000000000000000000000000000000000000000000000000000000000",
) && ref.output_index == 0
_ -> error @"script purpose isn't 'Spend'"
_ ->
error @"script purpose isn't 'Spend'"
}
}
@@ -48,7 +49,8 @@ fn assert_outputs(transaction) {
output.datum == NoDatum,
output.reference_script == None,
]
|> list.and
_ -> error @"unexpected number of outputs"
|> list.and
_ ->
error @"unexpected number of outputs"
}
}