Add asset-buyer hack

This commit is contained in:
fragosti
2019-11-08 17:51:25 -08:00
parent 595358fa69
commit 3b1dca0e70

View File

@@ -77,7 +77,8 @@ export class AssetBuyer {
const provider = providerUtils.standardizeOrThrow(supportedProvider);
assert.isWebUri('sraApiUrl', sraApiUrl);
const chainId = options.chainId || constants.DEFAULT_ASSET_BUYER_OPTS.chainId;
const orderProvider = new StandardRelayerAPIOrderProvider(sraApiUrl, chainId);
// HACK: asset-buy will be deleted, but do not pass in chainId to allow everything to compile.
const orderProvider = new StandardRelayerAPIOrderProvider(sraApiUrl);
const assetBuyer = new AssetBuyer(provider, orderProvider, options);
return assetBuyer;
}