diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 02:24:21 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 23:25:25 +0800 |
commit | a084bbbed833caf8318ae68c9c71edcb543676f1 (patch) | |
tree | fd9e4feefec77146cde76f1fb150d7e74571282d | |
parent | eb393f0a6643183c784914bf3e039d1f4299247d (diff) | |
download | dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.gz dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.tar.zst dexon-sol-tools-a084bbbed833caf8318ae68c9c71edcb543676f1.zip |
Rename cmp to comparedTo
-rw-r--r-- | contracts/tokens/test/unlimited_allowance_token.ts | 2 | ||||
-rw-r--r-- | contracts/tokens/test/zrx_token.ts | 2 |
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, { |