diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-28 09:24:14 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 5c13353fb2512411c0f2c8cba9395235188f5df8 (patch) | |
tree | 93251c599445f0fe61d86a39f619c4d78c0bfc29 /packages/utils/src/abi_encoder | |
parent | d6645b8a9116d92ac15f0b64f46566bf7f5447f1 (diff) | |
download | dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar.gz dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar.bz2 dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar.lz dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar.xz dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.tar.zst dexon-sol-tools-5c13353fb2512411c0f2c8cba9395235188f5df8.zip |
Optimize calldata by default.
Diffstat (limited to 'packages/utils/src/abi_encoder')
-rw-r--r-- | packages/utils/src/abi_encoder/utils/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/utils/constants.ts b/packages/utils/src/abi_encoder/utils/constants.ts index 82eeab010..acc06329c 100644 --- a/packages/utils/src/abi_encoder/utils/constants.ts +++ b/packages/utils/src/abi_encoder/utils/constants.ts @@ -10,5 +10,5 @@ export const constants = { HEX_SELECTOR_LENGTH_IN_BYTES: 4, HEX_SELECTOR_BYTE_OFFSET_IN_CALLDATA: 0, DEFAULT_DECODING_RULES: { structsAsObjects: false } as DecodingRules, - DEFAULT_ENCODING_RULES: { optimize: false, annotate: false } as EncodingRules, + DEFAULT_ENCODING_RULES: { optimize: true, annotate: false } as EncodingRules, }; |