Skip to content

Commit

Permalink
rpc: fix error message accidentally changed in 5e62edc
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Apr 15, 2021
1 parent adbd9f1 commit 40c09f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3340,7 +3340,7 @@ void FundTransaction(CWallet* const pwallet, CMutableTransaction& tx, CAmount& f
destinations[asset] = dest;
}
} else {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Change address must be a valid address");
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Change address must be either a map or a string");
}

coinControl.destChange = destinations;
Expand Down

0 comments on commit 40c09f6

Please sign in to comment.