Check QR before lowercase (#6119) (#6120)

This commit is contained in:
Arkadiy Paronyan 2017-07-21 19:02:04 +02:00 committed by GitHub
parent 3f7ac5c64b
commit 8f75042fee

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;
} }