Work around mismatch for QR checksum (#5374)
* Work around current native-signer encoding * Avoid trying to use non-existant util function.
This commit is contained in:
parent
4f8e61dce9
commit
bb8adcce92
@ -37,7 +37,7 @@ export default {
|
||||
params: `An error occurred with the following description`
|
||||
},
|
||||
input: {
|
||||
abi: `ABI Interface`,
|
||||
abi: `ABI Definition`,
|
||||
code: `Bytecode`,
|
||||
metadata: `Metadata`,
|
||||
swarm: `Swarm Metadata Hash`
|
||||
|
@ -96,6 +96,7 @@ export default class Store {
|
||||
}
|
||||
|
||||
@computed get qrAddressValid () {
|
||||
console.log('qrValid', this.qrAddress, this._api.util.isAddressValid(this.qrAddress));
|
||||
return this._api.util.isAddressValid(this.qrAddress);
|
||||
}
|
||||
|
||||
@ -155,7 +156,10 @@ export default class Store {
|
||||
qrAddress = `0x${qrAddress}`;
|
||||
}
|
||||
|
||||
this.qrAddress = qrAddress;
|
||||
// FIXME: Current native signer encoding is not 100% for EIP-55, lowercase for now
|
||||
this.qrAddress = this._api.util
|
||||
? this._api.util.toChecksumAddress(qrAddress.toLowerCase())
|
||||
: qrAddress;
|
||||
}
|
||||
|
||||
@action setVaultName = (vaultName) => {
|
||||
|
@ -608,7 +608,7 @@ class WriteContract extends Component {
|
||||
label={
|
||||
<FormattedMessage
|
||||
id='writeContract.input.abi'
|
||||
defaultMessage='ABI Interface'
|
||||
defaultMessage='ABI Definition'
|
||||
/>
|
||||
}
|
||||
readOnly
|
||||
|
Loading…
Reference in New Issue
Block a user