this.atAddress.setAttribute('title','Interact with the given contract.')
this.atAddress.setAttribute('title','Interact with the given contract.')
}else{
}else{
...
@@ -387,10 +391,19 @@ class ContractDropdownUI {
...
@@ -387,10 +391,19 @@ class ContractDropdownUI {
loadFromAddress(){
loadFromAddress(){
this.event.trigger('clearInstance')
this.event.trigger('clearInstance')
varaddress=this.atAddressButtonInput.value
letaddress=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.
<div>Gas price: <input id='gasprice' oninput=${onGasPriceChange} /> Gwei <span> (visit <a target='_blank' href='https://ethgasstation.info'>ethgasstation.info</a> to get more info about gas price)</span></div>
<label class="m-0 form-check-label custom-control-label">Do not show this warning again.</label>
</div>
</div>
</div>
<div class=${css.checkbox}>
<input id='confirmsetting' type="checkbox">
<i class="fas fa-exclamation-triangle" aria-hidden="true"></i> Do not ask for confirmation again. (the setting will not be persisted for the next page reload)
if(!response||!response.length)response=newUint8Array(32*fnabi.outputs.length)// ensuring the data is at least filled by 0 cause `AbiCoder` throws if there's not engouh data
if(!response.length)response=newUint8Array(32*fnabi.outputs.length)// ensuring the data is at least filled by 0 cause `AbiCoder` throws if there's not engouh data