mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
QA: Add test to get 'Given claim_script is not hex' error
This commit is contained in:
parent
35364b6746
commit
a7736f8749
1 changed files with 7 additions and 0 deletions
|
|
@ -179,6 +179,13 @@ class FedPegTest(BitcoinTestFramework):
|
|||
print('RPC ERROR:', e.error['message'])
|
||||
assert("Peg-in Bitcoin transaction needs more confirmations to be sent." in e.error["message"])
|
||||
|
||||
try:
|
||||
pegtxid = sidechain.createrawpegin(raw, proof, 'AEIOU')
|
||||
raise Exception("Peg-in with non-hex claim_script should fail.")
|
||||
except JSONRPCException as e:
|
||||
print('RPC ERROR:', e.error['message'])
|
||||
assert("Given claim_script is not hex." in e.error["message"])
|
||||
|
||||
# Should fail due to non-matching wallet address
|
||||
try:
|
||||
scriptpubkey = sidechain.validateaddress(get_new_unconfidential_address(sidechain))["scriptPubKey"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue