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:
Tomasz Drwięga
2017-01-10 18:56:56 +01:00
committed by Gav Wood
parent 23feb7998f
commit 7aa2af3e21
14 changed files with 40 additions and 16 deletions

View File

@@ -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,