You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
contract extend doesnt work with --wasm or --wasm-hash #1557
stderr=```
thread \'main\' panicked at cmd/soroban-cli/src/commands/contract/extend.rs:134:43:
called `Option::unwrap()` on a `None` value
It panics when it doesn't find the --id argument. The issue is that extend seems to be written only to use a contract ID to find the contract. But it accepts the flattened key arguments which allows a wasm, wasm-hash or contract-id. So to fix the issue it needs to check for the presence of any and perform the proper ledger fetching logic depending on the one given. Or its argument list should only include a contract-id and not the wasm, wasm-hash option (and we will need to remove those guide entries). I'm not sure which is the intended behavior is but I'm assuming its the former given that there are guide entries indicating you can extend via wasm or wasm-hash: https://developers.stellar.org/docs/build/guides/cli/extend-contract-wasm
@BlaineHeffron To my knowledge, we can extend the contract's wasm code, the contract instance itself, and the ledger entries on the contract. So it probably shouldn't require a contract id always.
Activity
janewang commentedon Aug 21, 2024
@BlaineHeffron To my knowledge, we can extend the contract's wasm code, the contract instance itself, and the ledger entries on the contract. So it probably shouldn't require a contract id always.
https://developers.stellar.org/docs/build/guides/cli/extend-contract-instance