diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-07-07 02:43:58 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-07-07 04:03:35 +0800 |
commit | f767f5c12c3f17e6c5eb945f1d398f8270491f31 (patch) | |
tree | 342a6277a3a90228fadd8d4b17f7ea4ade4dfb08 /packages/website/ts/blockchain.ts | |
parent | c4ab5bc65333204e7cf712e3330406120f163268 (diff) | |
download | dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar.gz dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar.bz2 dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar.lz dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar.xz dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.tar.zst dexon-sol-tools-f767f5c12c3f17e6c5eb945f1d398f8270491f31.zip |
Hard code exchange abi
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index cc2afa28a..8b6bbe91a 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -66,6 +66,9 @@ import RpcSubprovider = require('web3-provider-engine/subproviders/rpc'); 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; @@ -624,7 +627,9 @@ export class Blockchain { ); const provider = this._contractWrappers.getProvider(); const web3Wrapper = new Web3Wrapper(provider); - web3Wrapper.abiDecoder.addABI(this._contractWrappers.exchange.abi); + // HACK: remove this hard-coded abi and use @0xproject/contract-wrappers + const exchangeAbi = _.get(Exchange, 'abi', []); + web3Wrapper.abiDecoder.addABI(exchangeAbi); const receipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); return receipt; } |