diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-03-21 08:34:58 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | 751f9b9240fef07de5a604fa2345453a7656dfb2 (patch) | |
tree | 900e7b71f0b0b9d86f405e5b77dcd9f760c1860d /packages/contracts/src/utils | |
parent | 1efba5979f2c11aa70845d2ef9f32b60e1bc6971 (diff) | |
download | dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar.gz dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar.bz2 dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar.lz dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar.xz dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.tar.zst dexon-sol-tools-751f9b9240fef07de5a604fa2345453a7656dfb2.zip |
Change from cancelOrdersBefore to cancelOrdersUpTo. The effect is that orders with salt <= to maker epoch will be cancelled (previously, it was salt < maker epoch)
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r-- | packages/contracts/src/utils/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/utils/exchange_wrapper.ts b/packages/contracts/src/utils/exchange_wrapper.ts index 808ff0fd4..3f56fd52f 100644 --- a/packages/contracts/src/utils/exchange_wrapper.ts +++ b/packages/contracts/src/utils/exchange_wrapper.ts @@ -167,11 +167,11 @@ export class ExchangeWrapper { const tx = await this._getTxWithDecodedExchangeLogsAsync(txHash); return tx; } - public async cancelOrdersBeforeAsync( + public async cancelOrdersUpToAsync( salt: BigNumber, from: string, ): Promise<TransactionReceiptWithDecodedLogs> { - const txHash = await this._exchange.cancelOrdersBefore.sendTransactionAsync( + const txHash = await this._exchange.cancelOrdersUpTo.sendTransactionAsync( salt, { from }, ); |