Check QR before lowercase (#6119)

This commit is contained in:
Jaco Greeff 2017-07-21 18:23:41 +02:00 committed by Gav Wood
parent 2d0d7150cc
commit e3a8780da7

View File

@ -120,7 +120,6 @@ export default class Store {
} }
@computed get qrAddressValid () { @computed get qrAddressValid () {
console.log('qrValid', this.qrAddress, this._api.util.isAddressValid(this.qrAddress));
return this._api.util.isAddressValid(this.qrAddress); return this._api.util.isAddressValid(this.qrAddress);
} }
@ -191,7 +190,7 @@ export default class Store {
} }
// FIXME: Current native signer encoding is not 100% for EIP-55, lowercase for now // FIXME: Current native signer encoding is not 100% for EIP-55, lowercase for now
this.qrAddress = this._api.util this.qrAddress = qrAddress && this._api.util
? this._api.util.toChecksumAddress(qrAddress.toLowerCase()) ? this._api.util.toChecksumAddress(qrAddress.toLowerCase())
: qrAddress; : qrAddress;
} }