Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
scripts/build.sh:18-31 runs stellar/soroban contract optimize and emits target/wasm32-unknown-unknown/release/.optimized.wasm, but scripts/deploy-config.json points every contract.wasm at the non-optimized release/.wasm. The optimization pass is wasted and deployments upload the larger, unoptimized bytecode, increasing instantiation cost and ongoing ledger rent.
Acceptance criteria
Files to touch
scripts/build.sh
scripts/deploy-config.json
scripts/deploy.ts
Out of scope
- Adding new optimization flags to the compiler profile
Why this matters
scripts/build.sh:18-31 runs stellar/soroban contract optimize and emits target/wasm32-unknown-unknown/release/.optimized.wasm, but scripts/deploy-config.json points every contract.wasm at the non-optimized release/.wasm. The optimization pass is wasted and deployments upload the larger, unoptimized bytecode, increasing instantiation cost and ongoing ledger rent.
Acceptance criteria
Files to touch
scripts/build.shscripts/deploy-config.jsonscripts/deploy.tsOut of scope