address selector: lower case for reverse completion
This commit is contained in:
parent
92742e663a
commit
38734c92c2
@ -32,6 +32,7 @@ export default class AddressSelectStore {
|
|||||||
initValues = [];
|
initValues = [];
|
||||||
regLookups = [
|
regLookups = [
|
||||||
(address) => {
|
(address) => {
|
||||||
|
address = address.toLowerCase().trim();
|
||||||
if (address.length === 0 || address === '0x') {
|
if (address.length === 0 || address === '0x') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -41,7 +42,7 @@ export default class AddressSelectStore {
|
|||||||
if (!name) {
|
if (!name) {
|
||||||
const addr = Object
|
const addr = Object
|
||||||
.keys(this.reverse)
|
.keys(this.reverse)
|
||||||
.find((addr) => addr.slice(0, address.length) === address);
|
.find((addr) => addr.toLowerCase().slice(0, address.length) === address);
|
||||||
|
|
||||||
if (addr) {
|
if (addr) {
|
||||||
address = addr;
|
address = addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user