aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/tokens
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-30 06:35:09 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-30 06:35:09 +0800
commitd80701c2779512324c7a9bef2a87b6f63239d281 (patch)
treeb35903f1951a683ee50db1908dcc1fc46b81c165 /packages/contracts/test/tokens
parentbf3ab1127d11a7530c1abe8236e149d3d96fd35b (diff)
downloaddexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar.gz
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar.bz2
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar.lz
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar.xz
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.tar.zst
dexon-sol-tools-d80701c2779512324c7a9bef2a87b6f63239d281.zip
Fix geth tests
Diffstat (limited to 'packages/contracts/test/tokens')
-rw-r--r--packages/contracts/test/tokens/unlimited_allowance_token.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/tokens/unlimited_allowance_token.ts b/packages/contracts/test/tokens/unlimited_allowance_token.ts
index f2725b408..63680fe9b 100644
--- a/packages/contracts/test/tokens/unlimited_allowance_token.ts
+++ b/packages/contracts/test/tokens/unlimited_allowance_token.ts
@@ -5,7 +5,7 @@ import * as chai from 'chai';
import { DummyERC20TokenContract } from '../../generated_contract_wrappers/dummy_erc20_token';
import { artifacts } from '../utils/artifacts';
-import { expectContractCallFailed } from '../utils/assertions';
+import { expectContractCallFailedAsync } from '../utils/assertions';
import { chaiSetup } from '../utils/chai_setup';
import { constants } from '../utils/constants';
import { provider, txDefaults, web3Wrapper } from '../utils/web3_wrapper';
@@ -54,7 +54,7 @@ describe('UnlimitedAllowanceToken', () => {
it('should throw if owner has insufficient balance', async () => {
const ownerBalance = await token.balanceOf.callAsync(owner);
const amountToTransfer = ownerBalance.plus(1);
- return expectContractCallFailed(
+ return expectContractCallFailedAsync(
token.transfer.callAsync(spender, amountToTransfer, { from: owner }),
RevertReason.Erc20InsufficientBalance,
);
@@ -93,7 +93,7 @@ describe('UnlimitedAllowanceToken', () => {
await token.approve.sendTransactionAsync(spender, amountToTransfer, { from: owner }),
constants.AWAIT_TRANSACTION_MINED_MS,
);
- return expectContractCallFailed(
+ return expectContractCallFailedAsync(
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),
@@ -109,7 +109,7 @@ describe('UnlimitedAllowanceToken', () => {
const isSpenderAllowanceInsufficient = spenderAllowance.cmp(amountToTransfer) < 0;
expect(isSpenderAllowanceInsufficient).to.be.true();
- return expectContractCallFailed(
+ return expectContractCallFailedAsync(
token.transferFrom.callAsync(owner, spender, amountToTransfer, {
from: spender,
}),