aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-31 05:23:09 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-31 05:23:09 +0800
commit11df29fa8e4f355ec438966fa9e40cb09fe97380 (patch)
tree15da68826eddc4121c515024ab2c4dee6216236c /packages/website/ts/blockchain.ts
parentf4a41e80b82e95e95c304821f3cb60dea960253b (diff)
downloaddexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar.gz
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar.bz2
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar.lz
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar.xz
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.tar.zst
dexon-sol-tools-11df29fa8e4f355ec438966fa9e40cb09fe97380.zip
Update exchange ABI for decoding logs
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 33afd6d1b..b97d86e99 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -59,9 +59,6 @@ import FilterSubprovider = require('web3-provider-engine/subproviders/filters');
import * as MintableArtifacts from '../contracts/Mintable.json';
-// HACK: remove this hard-coded abi and use @0xproject/contract-wrappers
-import * as Exchange from './artifacts/Exchange.json';
-
const BLOCK_NUMBER_BACK_TRACK = 50;
const GWEI_IN_WEI = 1000000000;
@@ -633,8 +630,7 @@ export class Blockchain {
);
const provider = this._contractWrappers.getProvider();
const web3Wrapper = new Web3Wrapper(provider);
- // HACK: remove this hard-coded abi and use @0xproject/contract-wrappers
- const exchangeAbi = _.get(Exchange, 'abi', []);
+ const exchangeAbi = this._contractWrappers.exchange.abi;
web3Wrapper.abiDecoder.addABI(exchangeAbi);
const receipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash);
return receipt;