Add coreArtifacts to forwarder wrapper

This commit is contained in:
Leonid Logvinov
2018-12-10 14:29:15 -08:00
parent 6d523835ae
commit 14ea4ee1d3

View File

@@ -1,3 +1,4 @@
import { artifacts as coreArtifacts } from '@0x/contracts-core';
import { constants, formatters, LogDecoder, MarketSellOrders } from '@0x/contracts-test-utils';
import { artifacts as tokensArtifacts } from '@0x/contracts-tokens';
import { SignedOrder } from '@0x/types';
@@ -59,7 +60,7 @@ export class ForwarderWrapper {
constructor(contractInstance: ForwarderContract, provider: Provider) {
this._forwarderContract = contractInstance;
this._web3Wrapper = new Web3Wrapper(provider);
this._logDecoder = new LogDecoder(this._web3Wrapper, { ...artifacts, ...tokensArtifacts });
this._logDecoder = new LogDecoder(this._web3Wrapper, { ...artifacts, ...tokensArtifacts, ...coreArtifacts });
}
public async marketSellOrdersWithEthAsync(
orders: SignedOrder[],