aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 17:58:17 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 17:58:17 +0800
commit1043def46c137c9d308b3201eddc0d08afa34b10 (patch)
treea4aed6fae86cf0235b52aab5ee9aeff409d6df6d /src/web3_wrapper.ts
parent6af2ba5cffa582130b1c50639cabd9d6385dbd9e (diff)
downloaddexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar.gz
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar.bz2
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar.lz
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar.xz
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.tar.zst
dexon-sol-tools-1043def46c137c9d308b3201eddc0d08afa34b10.zip
Install js-sha3 and use it for keccak256
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts4
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;