Check QR before lowercase (#6119)
This commit is contained in:
parent
2d0d7150cc
commit
e3a8780da7
@ -120,7 +120,6 @@ 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);
|
||||
}
|
||||
|
||||
@ -191,7 +190,7 @@ export default class Store {
|
||||
}
|
||||
|
||||
// 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())
|
||||
: qrAddress;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user