I am deploying my contract on the rococo network and my contract wasm build size is 137K

Original wasm size: 188.1K, Optimized: 137.0K

Can you help on how to reduce the code size or any other possible way to resolve this error

1 Answer 1


Build contract with release flag:

cargo contract build --release

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.