mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Fix address string assertions in tests
This commit is contained in:
parent
791c53b018
commit
eedb83440c
2 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||||
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
|
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
|
||||||
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
|
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
|
||||||
|
|
||||||
assert_raises_rpc_error(-5, "changeAddress must be a valid bitcoin address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
|
assert_raises_rpc_error(-5, "changeAddress must be a valid address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# test a fundrawtransaction with a provided change address #
|
# test a fundrawtransaction with a provided change address #
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||||
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
|
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
|
||||||
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
|
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
|
||||||
|
|
||||||
assert_raises_rpc_error(-5, "changeAddress must be a valid bitcoin address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
|
assert_raises_rpc_error(-5, "changeAddress must be a valid address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# test a fundrawtransaction with a provided change address #
|
# test a fundrawtransaction with a provided change address #
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue