-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soroban-cli: unnecessarily requires durability when bumping a contract #1078
Comments
The same problem exists when bumping a WASM. WASM is only ever stored in persistent storage. The CLI requires durability to be specified. It actually allows temporary to be specified and ignores it and bumps the persistent. |
With the latest changes on
For reference, my CLI version:
|
Bump was renamed to extend in: |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedWith over four years in blockchain and backend development, I’ve worked across different ecosystems, handling everything from smart contract design to on-chain interactions and protocol integration. I focus on building secure, scalable, and reliable blockchain applications, managing both on-chain and off-chain infrastructure. How I plan on tackling this issueI'd review the logic causing the issue, explore alternative solutions, and wrap up with thorough testing to ensure the fix works across different scenarios |
Hi @leighmcculloch and @janewang I am applying to this issue via OnlyDust platform. My background and how it can be leveragedMy name is Koxy. I'm a blockchain Rust developer and Stellar ecosystem contributor. As an SCF Pathfinder and contributor to Stellar documentation, I have hands-on experience with both Rust and the Stellar platform. My background in open-source development and familiarity with Stellar's architecture positions me well to address the timing issues in Soroban CLI tests. I'm eager to implement immediate solutions while collaborating with the team on long-term improvements to enhance Soroban CLI's reliability. How I plan on tackling this issueTo approach this problem with the Soroban CLI's contract bump command, I would:
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have a solid background in JavaScript and TypeScript development, particularly in building and maintaining command-line interfaces. My experience includes debugging and resolving issues related to contract interactions in blockchain environments. How I plan on tackling this issueI would analyze the bump command implementation to understand why the durability requirement is enforced. After confirming that a contract instance is always stored in persistent storage, I’d modify the code to remove the durability requirement. Additionally, I would enhance error handling to provide clearer messages for accidental temporary durability specifications. |
Hi @janewang @stellarsaur I just worked on this issue. Kindly help review. This is my pull request. |
@ElliotFriend pls help review this as well. This is an issue I worked on from ODhack. |
What version are you using?
What did you do?
What did you expect to see?
Successful bump of contract instance.
What did you see instead?
Error message saying that durability must be specified.
Discussion
The
contract bump
subcommand when executed with only a contract ID and no storage key, will bump the contract instance. The contract instance is always stored in persistent storage, so there's no need to require that durability be specified.Additionally, if someone does accidentally specify temporary, the error message is not trivial to understand. So the application can lead a developer down a path that is confusing.
The text was updated successfully, but these errors were encountered: