|
|
|
@ -9,6 +9,7 @@ const confirmDialog = require('../../ui/confirmDialog') |
|
|
|
|
const modalDialog = require('../../ui/modaldialog') |
|
|
|
|
const MultiParamManager = require('../../ui/multiParamManager') |
|
|
|
|
const helper = require('../../../lib/helper') |
|
|
|
|
const addTooltip = require('../../ui/tooltip') |
|
|
|
|
const _paq = window._paq = window._paq || [] |
|
|
|
|
|
|
|
|
|
class ContractDropdownUI { |
|
|
|
@ -392,11 +393,17 @@ class ContractDropdownUI { |
|
|
|
|
|
|
|
|
|
let address = this.atAddressButtonInput.value |
|
|
|
|
if (!ethJSUtil.isValidChecksumAddress(address)) { |
|
|
|
|
addTooltip(yo` |
|
|
|
|
<span> |
|
|
|
|
It seems you are not using a checksumed address. |
|
|
|
|
<br>A checksummed address is an address that contains uppercase letters, as specified in <a href="https://eips.ethereum.org/EIPS/eip-55" target="_blank">EIP-55</a>. |
|
|
|
|
<br>Checksummed addresses are meant to help prevent users from sending transactions to the wrong address. |
|
|
|
|
</span>`) |
|
|
|
|
address = ethJSUtil.toChecksumAddress(address) |
|
|
|
|
} |
|
|
|
|
this.dropdownLogic.loadContractFromAddress(address, |
|
|
|
|
(cb) => { |
|
|
|
|
modalDialogCustom.confirm(null, 'Do you really want to interact with ' + address + ' using the current ABI definition?', cb) |
|
|
|
|
modalDialogCustom.confirm('At Address', `Do you really want to interact with ${address} using the current ABI definition?`, cb) |
|
|
|
|
}, |
|
|
|
|
(error, loadType, abi) => { |
|
|
|
|
if (error) { |
|
|
|
|