aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 02:24:21 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 23:25:25 +0800
commita084bbbed833caf8318ae68c9c71edcb543676f1 (patch)
treefd9e4feefec77146cde76f1fb150d7e74571282d
parenteb393f0a6643183c784914bf3e039d1f4299247d (diff)
downloaddexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.gz
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.bz2
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.lz
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.xz
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.zst
dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.zip
Rename cmp to comparedTo
-rw-r--r--contracts/tokens/test/unlimited_allowance_token.ts2
-rw-r--r--contracts/tokens/test/zrx_token.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/contracts/tokens/test/unlimited_allowance_token.ts b/contracts/tokens/test/unlimited_allowance_token.ts
index 6d5a29b23..f0b8e53a4 100644
--- a/contracts/tokens/test/unlimited_allowance_token.ts
+++ b/contracts/tokens/test/unlimited_allowance_token.ts
@@ -109,7 +109,7 @@ describe('UnlimitedAllowanceToken', () => {
const amountToTransfer = ownerBalance;
const spenderAllowance = await token.allowance.callAsync(owner, spender);
- const isSpenderAllowanceInsufficient = spenderAllowance.cmp(amountToTransfer) < 0;
+ const isSpenderAllowanceInsufficient = spenderAllowance.comparedTo(amountToTransfer) < 0;
expect(isSpenderAllowanceInsufficient).to.be.true();
return expectContractCallFailedAsync(
diff --git a/contracts/tokens/test/zrx_token.ts b/contracts/tokens/test/zrx_token.ts
index 5dc8447f6..820b054e6 100644
--- a/contracts/tokens/test/zrx_token.ts
+++ b/contracts/tokens/test/zrx_token.ts
@@ -117,7 +117,7 @@ describe('ZRXToken', () => {
const amountToTransfer = ownerBalance;
const spenderAllowance = await zrxToken.allowance.callAsync(owner, spender);
- const isSpenderAllowanceInsufficient = spenderAllowance.cmp(amountToTransfer) < 0;
+ const isSpenderAllowanceInsufficient = spenderAllowance.comparedTo(amountToTransfer) < 0;
expect(isSpenderAllowanceInsufficient).to.be.true();
const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, {