Auto-detect hex encoded bytes in sha3 (#4108)
* Auto-detect hex encoded bytes in sha3 * Using types/isHex * Removing unused imports
This commit is contained in:
@@ -85,7 +85,7 @@ export default class AddressSelectStore {
|
||||
return emailVerification
|
||||
.instance
|
||||
.reverse
|
||||
.call({}, [ sha3(email) ])
|
||||
.call({}, [ sha3.text(email) ])
|
||||
.then((address) => {
|
||||
return {
|
||||
address,
|
||||
@@ -109,7 +109,7 @@ export default class AddressSelectStore {
|
||||
this.regLookups.push((name) => {
|
||||
return registryInstance
|
||||
.getAddress
|
||||
.call({}, [ sha3(name), 'A' ])
|
||||
.call({}, [ sha3.text(name), 'A' ])
|
||||
.then((address) => {
|
||||
return {
|
||||
address,
|
||||
|
||||
Reference in New Issue
Block a user