aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-28 15:34:13 +0800
committerFabio Berger <me@fabioberger.com>2018-06-28 15:34:13 +0800
commitb56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd (patch)
treeac94c480b692eebf5f55f6b59b060bd9441cc4b3 /packages
parentf49a5072972296677cc19ab5d5354175b8f8287b (diff)
downloaddexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar.gz
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar.bz2
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar.lz
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar.xz
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.tar.zst
dexon-sol-tools-b56baefaa66bb37ba1ea6c0dd487b2caf1ef44bd.zip
Add await time constant
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/src/utils/erc20_wrapper.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/contracts/src/utils/erc20_wrapper.ts b/packages/contracts/src/utils/erc20_wrapper.ts
index 451f16513..7f00e2061 100644
--- a/packages/contracts/src/utils/erc20_wrapper.ts
+++ b/packages/contracts/src/utils/erc20_wrapper.ts
@@ -94,6 +94,7 @@ export class ERC20Wrapper {
await tokenContract.setBalance.sendTransactionAsync(userAddress, amount, {
from: this._contractOwnerAddress,
}),
+ constants.AWAIT_TRANSACTION_MINED_MS,
);
}
public async getProxyAllowanceAsync(userAddress: string, assetData: string): Promise<BigNumber> {
@@ -109,6 +110,7 @@ export class ERC20Wrapper {
await tokenContract.approve.sendTransactionAsync(proxyAddress, amount, {
from: userAddress,
}),
+ constants.AWAIT_TRANSACTION_MINED_MS,
);
}
public async getBalancesAsync(): Promise<ERC20BalancesByOwner> {