Move.

Post

Share your knowledge.

Jackson.
Nov 10, 2023
Expert Q&A

Does Sui devnet delete Move packages and contracts after a certain time?

I recently deployed a contract on the Sui devnet, and everything was functioning correctly. I was able to interact with the contract without any issues. However, this week, my Move package ID seems to have disappeared. I can no longer find it on the Sui devnet explorer. I had a link to the deployed contract, which was functional last week but not anymore. I'm confused if I need to redeploy the contracts every week when working with the devnet.

Previously, I used the following command successfully:

sui client call --function modify_threshold --module multisig --package $PACKAGE_ID --args 0x6beaaefd6387c5f91d3f0fa341390a7cf05c6a6f52efcc8ce6416b63253c3137 2 --gas-budget 10000000
echo $PACKAGE_ID (result: 0xa67043c277b23ec7b770ae049d18176aa7a8ed66b90a314117aeea10dd271b6c)

But now, I'm receiving the error message: Package object does not exist with ID 0xa67043c277b23ec7b770ae049d18176aa7a8ed66b90a314117aeea10dd271b6c

I would appreciate any response or ideas regarding this issue.

Additionally, I would like to know how to update my Sui devnet client locally. I'm encountering the following warning from the SUI CLI: [warn] Client/Server api version mismatch, client api version: 1.9.0, server api version: 1.10.0

  • Move
  • Move Module
0
2
Share
Comments
.

Answers

2
Jeremy.
Nov 10 2023, 13:05

The issue you're experiencing seems to be two-fold: the disappearance of your package ID and the API version mismatch warning in your Sui devnet client.

Package ID Disappearance: The disappearance of your package ID might be due to a network reset or other operational changes in the Sui devnet. According to the Sui DevNet Public Release, the Sui team prioritizes operational experience over stability in the early stages of the devnet. This means that there may be no backward compatibility and no Service Level Agreement (SLA) for network resets. Therefore, it's possible that the package ID was reset or removed due to these operational changes.
API Version Mismatch: The warning message you're seeing indicates a mismatch between the API versions of your Sui client and the server. This could be due to a recent update to the Sui server that your client has not yet been updated to accommodate. You can check the latest releases of the Sui server on their GitHub releases page.

If there's a new release, you may need to update your Sui client to match the server's API version. To update your Sui devnet client locally, you can follow these steps:

  1. Check the latest release of the Sui server on their GitHub releases page.
  2. Download the latest release that matches your operating system.
  3. Replace the existing Sui binary in your local environment with the downloaded binary.
  4. Verify the update by checking the version of your Sui client using the command sui version.

Please note that these are general suggestions and may not be applicable or feasible in the specific context of the Sui framework. For a more accurate and specific solution, it would be best to consult the Sui documentation or seek advice from the Sui community.

0
Comments
.
Steven.
Nov 10 2023, 13:15

When interacting with Sui devnet, it is indeed expected to redeploy the Move smart contracts regularly. The Sui devnet undergoes a wipe approximately once per week, typically tied to significant updates. On the other hand, testnet wipes happen more infrequently and are usually announced. To update your installation, if you used "cargo install," simply repeat the installation process. If you maintain your local repo, perform a git pull followed by cargo build -p sui. An alternative approach to minimize version mismatches is to use suibase, a third-party open-source project that maintains a local repo for each network (localnet, devnet, testnet, mainnet). By utilizing suibase, you can simply execute "devnet update" to install the latest available version corresponding to the Sui devnet. Keep in mind that developers may encounter warnings due to version mismatches, which are often visible to everyone, as the latest devnet branch version and server configurations are beyond our control.

Despite this, Mysten Labs strives not to impede developers, and historically, minor version mismatches have not posed significant problems. If you have further questions or need assistance with a different approach, feel free to ask them here;

0
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJuly