aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils/constants.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-02 05:03:12 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-06-07 03:40:30 +0800
commit98ffe9931d4fd8886955c45c42eb63b33184ddd2 (patch)
treed87585eca67af0e5cf5c6700f9bc0696dd542f6f /packages/contracts/src/utils/constants.ts
parent2004c0d7398a5e77d08e3b4d8030c0f22cb09cc8 (diff)
downloaddexon-sol-tools-98ffe9931d4fd8886955c45c42eb63b33184ddd2.tar.gz
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/utils/constants.ts')
-rw-r--r--packages/contracts/src/utils/constants.ts5
1 files changed, 5 insertions, 0 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,