Dashify fundrawtransaction exception
Fixes test failure
This commit is contained in:
parent
f8ad2ffa79
commit
2c63839f23
@ -222,9 +222,9 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
|
||||
try:
|
||||
self.nodes[2].fundrawtransaction(rawtx, {'changeAddress': 'foobar'})
|
||||
raise AssertionError("Accepted invalid bitcoin address")
|
||||
raise AssertionError("Accepted invalid dash address")
|
||||
except JSONRPCException,e:
|
||||
assert("changeAddress must be a valid bitcoin address" in e.error['message'])
|
||||
assert("changeAddress must be a valid dash address" in e.error['message'])
|
||||
|
||||
|
||||
|
||||
|
@ -2713,7 +2713,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
||||
CBitcoinAddress address(options["changeAddress"].get_str());
|
||||
|
||||
if (!address.IsValid())
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid bitcoin address");
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid dash address");
|
||||
|
||||
changeAddress = address.Get();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user