diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 17:58:17 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 17:58:17 +0800 |
commit | 1043def46c137c9d308b3201eddc0d08afa34b10 (patch) | |
tree | a4aed6fae86cf0235b52aab5ee9aeff409d6df6d /src/web3_wrapper.ts | |
parent | 6af2ba5cffa582130b1c50639cabd9d6385dbd9e (diff) | |
download | dexon-0x-contracts-1043def46c137c9d308b3201eddc0d08afa34b10.tar.gz dexon-0x-contracts-1043def46c137c9d308b3201eddc0d08afa34b10.tar.zst dexon-0x-contracts-1043def46c137c9d308b3201eddc0d08afa34b10.zip |
Install js-sha3 and use it for keccak256
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r-- | src/web3_wrapper.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index fd9b74b8b..9de75c809 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -116,10 +116,6 @@ export class Web3Wrapper { const logs = await this.sendRawPayloadAsync(payload); return logs; } - public keccak256(data: string): string { - const hash = this.web3.sha3(data); - return hash; - } private getContractInstance<A extends Web3.ContractInstance>(abi: Web3.ContractAbi, address: string): A { const web3ContractInstance = this.web3.eth.contract(abi).at(address); const contractInstance = new Contract(web3ContractInstance, this.defaults) as any as A; |