1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix error message

This commit is contained in:
frankiebee 2018-03-13 15:26:45 -07:00
parent d7bf6e36b1
commit c465d510b1

View File

@ -104,7 +104,7 @@ module.exports = class TxGasUtil {
if ('to' in txParams) {
if ( txParams.to === null ) delete txParams.to
else if ( txParams.to !== undefined && !isValidAddress(txParams.to) ) {
throw new Error(`Invalid transaction value of ${txParams.to} not a valid to address.`)
throw new Error(`Invalid recipient address`)
}
}
if ('value' in txParams) {