Skip to content

Conversation

@fnando
Copy link
Member

@fnando fnando commented Jul 31, 2025

What

Make stellar contract optimize accept one or more files.

$ stellar contract optimize --wasm target/wasm32v1-none/release/hello_world.wasm target/wasm32v1-none/release/bye.wasm
Reading: target/wasm32v1-none/release/hello_world.wasm (574 bytes)
Optimized: target/wasm32v1-none/release/hello_world.optimized.wasm (537 bytes)
Reading: target/wasm32v1-none/release/bye.wasm (565 bytes)
Optimized: target/wasm32v1-none/release/bye.optimized.wasm (528 bytes)

$ stellar contract optimize
error: the following required arguments were not provided:
  --wasm <WASM>...

Usage: stellar contract optimize --wasm <WASM>...

For more information, try '--help'.

$ stellar contract optimize --wasm target/wasm32v1-none/release/hello_world.wasm target/wasm32v1-none/release/bye.wasm --wasm-out tmp/foo.wasm
❌ error: --wasm-out cannot be used with --wasm option when passing multiple files

Why

Close #717.

Known limitations

  • Cannot specify --wasm-out when passing more than 1 file via --wasm.

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Jul 31, 2025
@fnando fnando merged commit c3a92be into main Jul 31, 2025
35 checks passed
@fnando fnando deleted the optimize-many branch July 31, 2025 21:06
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Optimize should accept multiple wasm as arguments

3 participants