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:
Jaco Greeff 2017-04-11 16:43:15 +02:00 committed by Gav Wood
parent 4f8e61dce9
commit bb8adcce92
3 changed files with 7 additions and 3 deletions

View File

@ -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`

View File

@ -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) => {

View File

@ -608,7 +608,7 @@ class WriteContract extends Component {
label={
<FormattedMessage
id='writeContract.input.abi'
defaultMessage='ABI Interface'
defaultMessage='ABI Definition'
/>
}
readOnly