-
Notifications
You must be signed in to change notification settings - Fork 78
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
Fix expired contract re-deployment #776
Comments
cc @tyvdh @tsachiherman for visibility |
#775 Should help solve this issue. The wasm was already installed and has since expired. So it would need to be restored and bumped as this is a very common contract. Still having issues with the PR. |
@willemneal |
@Julian-dev28 I'm not sure that this solution solve the core issue here. It does provide an end-user solution, but force the user to go through the error case. I'd like to propose the following logic -
|
Exactly, we should be able to recover automatically in both an install and a deploy. |
Relevant ##788 |
Handle the case for SAC contract data expiration. |
@tsachiherman Spoke at length with Tyler, it seems the main issue is resolved, but rather users have trouble knowing how to restore the contract instance itself. #789 fixes this by using the contract's instance key if no other keys are provided. At this point I feel like the bump/restore commands should each become three
It works currently but would be a little clearer to the user to understand the three options and not have to deal with understanding how to achieve it with flags. Not sure if this should be part of this issue or a new one since it's more of a UX issue. |
I would say let's ship as-is then open another PR we could merge later where we change/add command names I firmly believe this fix along with the |
This issue is based on the the following conversations:
https://stellarfoundation.slack.com/archives/C030Z9EHVQE/p1689620158103189
https://stellarfoundation.slack.com/archives/C030Z9EHVQE/p1689354184687359
What version are you using?
soroban-cli - 0.9.1
soroban sdk - 0.9.2
What did you do?
Encountered an error while attempting to deploy a previously deployed Soroban Token smart contract and the Soroban Hello World smart contract from the soroban examples.
To recreate this event, follow the steps below:
First, clone the soroban-examples repo and navigate to the hello-world directory
Next build the smart contract using the soroban-cli
Then deploy the contract using soroban-cli
What did you expect to see?
The terminal returns the contract address where the contract is deployed:
What did you see instead?
An error message with XDR data:
The text was updated successfully, but these errors were encountered: