Fix acceptance tests to use new syntax.

This commit is contained in:
KtorZ
2023-02-18 09:48:05 +01:00
parent 53fb821b62
commit 5132110d4b
17 changed files with 37 additions and 36 deletions

View File

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