diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-01 22:25:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-01 22:25:37 +0800 |
commit | f756e1d24e4a27b4e0ce8078884408a321fe2d28 (patch) | |
tree | 6716a206d879d68461eac32e53acc79358c3a7ab /src | |
parent | 6c590354c7536ae3ed941fb757be9d0240739e14 (diff) | |
download | dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar.gz dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar.bz2 dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar.lz dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar.xz dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.tar.zst dexon-sol-tools-f756e1d24e4a27b4e0ce8078884408a321fe2d28.zip |
remove unneeded method
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 96bb4c0a0..39b6d27b4 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -71,7 +71,7 @@ export class ExchangeWrapper extends ContractWrapper { assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer); const senderAddress = await this.web3Wrapper.getSenderAddressOrThrowAsync(); - const exchangeInstance = await this.getExchangeInstanceOrThrowAsync(); + const exchangeInstance = await this.getExchangeContractAsync(); this.validateFillOrder(signedOrder, fillTakerAmountInBaseUnits, senderAddress, shouldCheckTransfer); @@ -129,10 +129,6 @@ export class ExchangeWrapper extends ContractWrapper { throw new Error(FillOrderValidationErrs.EXPIRED); } } - private async getExchangeInstanceOrThrowAsync(): Promise<ExchangeContract> { - const contractInstance = await this.instantiateContractIfExistsAsync((ExchangeArtifacts as any)); - return contractInstance as ExchangeContract; - } private throwErrorLogsAsErrors(logs: ContractEvent[]): void { const errEvent = _.find(logs, {event: 'LogError'}); if (!_.isUndefined(errEvent)) { |