diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 05:51:12 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 06:42:49 +0800 |
commit | b6a133cc641617bd1099ec00c62a749f548316b7 (patch) | |
tree | c230cabe28d467a9b4299c6b57b299d4152bd645 /packages/contracts/util/constants.ts | |
parent | 7aa070f9eaef734274df6e6eaa4590fe30d52899 (diff) | |
download | dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar.gz dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar.bz2 dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar.lz dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar.xz dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.tar.zst dexon-sol-tools-b6a133cc641617bd1099ec00c62a749f548316b7.zip |
Improve an error message when an inorrect number of constructor params is passed
Diffstat (limited to 'packages/contracts/util/constants.ts')
-rw-r--r-- | packages/contracts/util/constants.ts | 6 |
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], }; |