aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-17 06:44:20 +0800
committerFabio Berger <me@fabioberger.com>2017-08-17 06:44:20 +0800
commit2e668a771a5533182cfe010f022ab4c1f9afc1ba (patch)
tree61255f1e9a0336554f1ee37169a8624d08ae99b6
parenta32b94bac440f127c0b984d7a1e763cf4cb86792 (diff)
downloaddexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar.gz
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar.bz2
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar.lz
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar.xz
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.tar.zst
dexon-sol-tools-2e668a771a5533182cfe010f022ab4c1f9afc1ba.zip
remove unneeded assertion from _isRoundingErrorAsync since one can make static calls without an available address
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 2ddd63422..5d7521e89 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -711,7 +711,6 @@ export class ExchangeWrapper extends ContractWrapper {
private async _isRoundingErrorAsync(numerator: BigNumber.BigNumber,
demoninator: BigNumber.BigNumber,
makerTokenAmount: BigNumber.BigNumber): Promise<boolean> {
- await assert.isUserAddressAvailableAsync(this._web3Wrapper);
const exchangeInstance = await this._getExchangeContractAsync();
const isRoundingError = await exchangeInstance.isRoundingError.call(
demoninator, numerator, makerTokenAmount,