address selector: lower case for reverse completion

This commit is contained in:
Jannis R 2017-01-09 14:02:52 +01:00
parent 92742e663a
commit 38734c92c2
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5

View File

@ -32,6 +32,7 @@ export default class AddressSelectStore {
initValues = [];
regLookups = [
(address) => {
address = address.toLowerCase().trim();
if (address.length === 0 || address === '0x') {
return null;
}
@ -41,7 +42,7 @@ export default class AddressSelectStore {
if (!name) {
const addr = Object
.keys(this.reverse)
.find((addr) => addr.slice(0, address.length) === address);
.find((addr) => addr.toLowerCase().slice(0, address.length) === address);
if (addr) {
address = addr;