Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2480 from ethcore/jg-hardcoded-signaturereg-address
Browse files Browse the repository at this point in the history
fix signature lookup address
  • Loading branch information
jacogr authored Oct 5, 2016
2 parents 227b19f + 1761eca commit 4d896ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion js/src/contracts/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,14 @@ export default class Registry {

lookupAddress (_name) {
const name = _name.toLowerCase();
const sha3 = this._api.util.sha3(name);

return this.getInstance().then((instance) => {
return instance.getAddress.call({}, [this._api.util.sha3(name), 'A']);
return instance.getAddress.call({}, [sha3, 'A']);
})
.then((address) => {
console.log('lookupAddress', name, sha3, address);
return address;
});
}
}
1 change: 0 additions & 1 deletion js/src/dapps/signaturereg/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function attachInterface (callback) {
})
.then(([address, addresses, accountsInfo]) => {
console.log(`signaturereg was found at ${address}`);
address = '0x15fF40Ceb6092b8EBeD4046E2d4c54e5e4cae458';

const contract = api.newContract(abis.signaturereg, address);
const accounts = addresses.reduce((obj, address) => {
Expand Down

0 comments on commit 4d896ac

Please sign in to comment.