diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-02 05:03:12 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-07 03:40:30 +0800 |
commit | 98ffe9931d4fd8886955c45c42eb63b33184ddd2 (patch) | |
tree | d87585eca67af0e5cf5c6700f9bc0696dd542f6f /packages/contracts/src | |
parent | 2004c0d7398a5e77d08e3b4d8030c0f22cb09cc8 (diff) | |
download | dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.gz dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.bz2 dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.lz dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.xz dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.zst dexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.zip |
Get LibBytes tests working on both Ganache and Geth
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/utils/constants.ts | 5 | ||||
-rw-r--r-- | packages/contracts/src/utils/web3_wrapper.ts | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts index 144e22bc2..a0369c256 100644 --- a/packages/contracts/src/utils/constants.ts +++ b/packages/contracts/src/utils/constants.ts @@ -20,6 +20,11 @@ export const constants = { INVALID_OPCODE: 'invalid opcode', REVERT: 'revert', ALWAYS_FAILING_TRANSACTION: 'always failing transaction', + LIB_BYTES_GT_ZERO_LENGTH_REQUIRED: 'Length must be greater than 0.', + LIB_BYTES_GTE_4_LENGTH_REQUIRED: 'Length must be greater than or equal to 4.', + LIB_BYTES_GTE_20_LENGTH_REQUIRED: 'Length must be greater than or equal to 20.', + LIB_BYTES_GTE_32_LENGTH_REQUIRED: 'Length must be greater than or equal to 32.', + LIB_BYTES_INDEX_OUT_OF_BOUNDS: 'Specified array index is out of bounds.', TESTRPC_NETWORK_ID: 50, AWAIT_TRANSACTION_MINED_MS: 100, MAX_ETHERTOKEN_WITHDRAW_GAS: 43000, diff --git a/packages/contracts/src/utils/web3_wrapper.ts b/packages/contracts/src/utils/web3_wrapper.ts index bd582e841..49744dea1 100644 --- a/packages/contracts/src/utils/web3_wrapper.ts +++ b/packages/contracts/src/utils/web3_wrapper.ts @@ -5,7 +5,7 @@ import { Provider } from 'ethereum-types'; import { coverage } from './coverage'; -const useGeth = false; +const useGeth = true; const ganacheTxDefaults = { from: devConstants.TESTRPC_FIRST_ADDRESS, |