aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/unlimited_allowance_token.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-23 00:36:15 +0800
committerFabio Berger <me@fabioberger.com>2018-06-23 00:36:15 +0800
commit0e7c254b938045f0c6e0a57c78bb1db8a23557b6 (patch)
treee32e823d1bb6116cad5d431f0297ea15aa3fc6ce /packages/contracts/test/unlimited_allowance_token.ts
parentba14850c9a3f774169db1b67446618bb84daae54 (diff)
downloaddexon-0x-contracts-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.gz
dexon-0x-contracts-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.tar.zst
dexon-0x-contracts-0e7c254b938045f0c6e0a57c78bb1db8a23557b6.zip
Move constants over to ContractLibError enum and update all tests
Diffstat (limited to 'packages/contracts/test/unlimited_allowance_token.ts')
-rw-r--r--packages/contracts/test/unlimited_allowance_token.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/contracts/test/unlimited_allowance_token.ts b/packages/contracts/test/unlimited_allowance_token.ts
index 7132c57bf..b7d7acd48 100644
--- a/packages/contracts/test/unlimited_allowance_token.ts
+++ b/packages/contracts/test/unlimited_allowance_token.ts
@@ -7,6 +7,7 @@ import { artifacts } from '../src/utils/artifacts';
import { expectRevertOrOtherErrorAsync } from '../src/utils/assertions';
import { chaiSetup } from '../src/utils/chai_setup';
import { constants } from '../src/utils/constants';
+import { ContractLibErrors } from '../src/utils/types';
import { provider, txDefaults, web3Wrapper } from '../src/utils/web3_wrapper';
chaiSetup.configure();
@@ -55,7 +56,7 @@ describe('UnlimitedAllowanceToken', () => {
const amountToTransfer = ownerBalance.plus(1);
return expectRevertOrOtherErrorAsync(
token.transfer.callAsync(spender, amountToTransfer, { from: owner }),
- constants.ERC20_INSUFFICIENT_BALANCE,
+ ContractLibErrors.Erc20InsufficientBalance,
);
});
@@ -96,7 +97,7 @@ describe('UnlimitedAllowanceToken', () => {
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),
- constants.ERC20_INSUFFICIENT_BALANCE,
+ ContractLibErrors.Erc20InsufficientBalance,
);
});
@@ -112,7 +113,7 @@ describe('UnlimitedAllowanceToken', () => {
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),
- constants.ERC20_INSUFFICIENT_ALLOWANCE,
+ ContractLibErrors.Erc20InsufficientAllowance,
);
});