From c35477bb90ab71a93d0d7a85f78ac30b3af4613f Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:56:01 -0500 Subject: [PATCH] Update re-installing to enable opt to not include version Co-authored-by: Elliot Voris --- docs/getting-started/hello-world.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/hello-world.mdx b/docs/getting-started/hello-world.mdx index 32bc24da..7f99c3fa 100644 --- a/docs/getting-started/hello-world.mdx +++ b/docs/getting-started/hello-world.mdx @@ -331,7 +331,9 @@ The `.wasm` file contains the logic of the contract, as well as the contract's [ Use `soroban contract optimize` to further minimize the size of the `.wasm`. First, re-install soroban-cli with the `opt` feature: - cargo install --locked --version 20.3.0 soroban-cli --features opt +```bash +cargo install --locked soroban-cli --features opt +``` Then build an optimized `.wasm` file: