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:
parent
d7bf6e36b1
commit
c465d510b1
@ -104,7 +104,7 @@ module.exports = class TxGasUtil {
|
|||||||
if ('to' in txParams) {
|
if ('to' in txParams) {
|
||||||
if ( txParams.to === null ) delete txParams.to
|
if ( txParams.to === null ) delete txParams.to
|
||||||
else if ( txParams.to !== undefined && !isValidAddress(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) {
|
if ('value' in txParams) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user