Skip to content

Commit 42b87eb

Browse files
committed
Fix functional/wallet_fundrawtransaction.py file
1 parent dc8d468 commit 42b87eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/wallet_fundrawtransaction.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_invalid_change_address(self):
303303
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
304304
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
305305

306-
assert_raises_rpc_error(-5, "Change address must be a valid BGL address", self.nodes[2].fundrawtransaction, rawtx, changeAddress='foobar')
306+
assert_raises_rpc_error(-5, "Change address must be a valid bitgesell address", self.nodes[2].fundrawtransaction, rawtx, changeAddress='foobar')
307307

308308
def test_valid_change_address(self):
309309
self.log.info("Test fundrawtxn with a provided change address")
@@ -1054,8 +1054,8 @@ def test_external_inputs(self):
10541054
assert_raises_rpc_error(-4, "Not solvable pre-selected input COutPoint(%s, %s)" % (ext_utxo["txid"][0:10], ext_utxo["vout"]), wallet.fundrawtransaction, raw_tx)
10551055

10561056
# Error conditions
1057-
assert_raises_rpc_error(-5, "'not a pubkey' is not hex", wallet.fundrawtransaction, raw_tx, solving_data={"pubkeys":["not a pubkey"]})
1058-
assert_raises_rpc_error(-5, "'01234567890a0b0c0d0e0f' is not a valid public key", wallet.fundrawtransaction, raw_tx, solving_data={"pubkeys":["01234567890a0b0c0d0e0f"]})
1057+
assert_raises_rpc_error(-5, "Invalid public key: not a pubkey", wallet.fundrawtransaction, raw_tx, solving_data={"pubkeys":["not a pubkey"]})
1058+
assert_raises_rpc_error(-5, "Invalid public key: 01234567890a0b0c0d0e0f", wallet.fundrawtransaction, raw_tx, solving_data={"pubkeys":["01234567890a0b0c0d0e0f"]})
10591059
assert_raises_rpc_error(-5, "'not a script' is not hex", wallet.fundrawtransaction, raw_tx, solving_data={"scripts":["not a script"]})
10601060
assert_raises_rpc_error(-8, "Unable to parse descriptor 'not a descriptor'", wallet.fundrawtransaction, raw_tx, solving_data={"descriptors":["not a descriptor"]})
10611061
assert_raises_rpc_error(-8, "Invalid parameter, missing vout key", wallet.fundrawtransaction, raw_tx, input_weights=[{"txid": ext_utxo["txid"]}])

0 commit comments

Comments
 (0)