aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 12:56:56 +0800
committerGitHub <noreply@github.com>2018-06-12 12:56:56 +0800
commit746b1d0c4d0c5a6442373655877b268d365f9a0a (patch)
treedb0b26808f00347fb4774b52b5539402dbf0335b /packages/contracts
parent387c80e00af6db337f23ad9a762fcb5ca0cd7d09 (diff)
parentb916e7f7ef020c6208febe3ba69f4177346daab2 (diff)
downloaddexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar.gz
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar.bz2
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar.lz
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar.xz
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.tar.zst
dexon-sol-tools-746b1d0c4d0c5a6442373655877b268d365f9a0a.zip
Merge pull request #688 from 0xProject/feature/await-transaction-speedup
Speedup awaitTransactionMinedAsync and reduce polling interval in contracts tests
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/utils/constants.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts
index af3f26d82..5e336589f 100644
--- a/packages/contracts/src/utils/constants.ts
+++ b/packages/contracts/src/utils/constants.ts
@@ -27,7 +27,10 @@ export const constants = {
ERC20_INSUFFICIENT_BALANCE: 'Insufficient balance to complete transfer.',
ERC20_INSUFFICIENT_ALLOWANCE: 'Insufficient allowance to complete transfer.',
TESTRPC_NETWORK_ID: 50,
- AWAIT_TRANSACTION_MINED_MS: 100,
+ // Note(albrow): In practice V8 and most other engines limit the minimum
+ // interval for setInterval to 10ms. We still set it to 0 here in order to
+ // ensure we always use the minimum interval.
+ AWAIT_TRANSACTION_MINED_MS: 0,
MAX_ETHERTOKEN_WITHDRAW_GAS: 43000,
MAX_TOKEN_TRANSFERFROM_GAS: 80000,
MAX_TOKEN_APPROVE_GAS: 60000,