Open hychen opened 3 years ago
The size of submoloch is exceeded the limitation.
Leave client side decide which error strings should be printed.
Working on https://github.com/hychen/submoloch/tree/split_contract
option 3 and does not help. gonna hack cargo-contract to add some useful options for reducing wasm-size.
HashMap is way more expensive than I thought.
The size of submoloch is exceeded the limitation.
Possible Solutions
1 split submoloch to three small contracts,
2 shrinking wasm size
3 Remove erc20 contract from submoloch build dependency. Use erc20-trait instead.
4 Convert error strings to custom Error types.
Leave client side decide which error strings should be printed.
5. Use types that take smaller spaces. (e.x.: u128 -> u8)