aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/util
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-08 17:25:31 +0800
committerGitHub <noreply@github.com>2018-03-08 17:25:31 +0800
commit03902b0b26fe443705dde20c42e78e1cb4bd3c4b (patch)
treec1e1dc826d7b1bf9b02af717200ec221246d6263 /packages/contracts/util
parent883feabb8b0f9470ae2bd1713b929c220fdfae95 (diff)
parentbab8c1eeff287a5dd90754c3391fd702d974d9d6 (diff)
downloaddexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar.gz
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar.bz2
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar.lz
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar.xz
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.tar.zst
dexon-sol-tools-03902b0b26fe443705dde20c42e78e1cb4bd3c4b.zip
Merge pull request #419 from 0xProject/fix/deployer-args
Improve an error message when an incorrect number of constructor param…
Diffstat (limited to 'packages/contracts/util')
-rw-r--r--packages/contracts/util/constants.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/util/constants.ts b/packages/contracts/util/constants.ts
index e61b2f802..9bb090a2a 100644
--- a/packages/contracts/util/constants.ts
+++ b/packages/contracts/util/constants.ts
@@ -1,3 +1,8 @@
+const DUMMY_TOKEN_NAME = '';
+const DUMMY_TOKEN_SYMBOL = '';
+const DUMMY_TOKEN_DECIMALS = 18;
+const DUMMY_TOKEN_TOTAL_SUPPLY = 0;
+
export const constants = {
NULL_BYTES: '0x',
INVALID_OPCODE: 'invalid opcode',
@@ -6,4 +11,5 @@ export const constants = {
MAX_ETHERTOKEN_WITHDRAW_GAS: 43000,
MAX_TOKEN_TRANSFERFROM_GAS: 80000,
MAX_TOKEN_APPROVE_GAS: 60000,
+ DUMMY_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL, DUMMY_TOKEN_DECIMALS, DUMMY_TOKEN_TOTAL_SUPPLY],
};