fix: gift card example stdlib update

closes #596
This commit is contained in:
rvcas
2023-06-13 00:38:29 -04:00
parent 22d491bb88
commit 37b2f0c239
8 changed files with 51 additions and 85 deletions

View File

@@ -28,8 +28,7 @@ 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'"
}
}
@@ -50,7 +49,6 @@ fn assert_outputs(transaction) {
output.reference_script == None,
]
|> list.and
_ ->
error @"unexpected number of outputs"
_ -> error @"unexpected number of outputs"
}
}