Local dependency did not match its on-chain version

I am on local devnet 1.7.0, and move targets to devnet in toml file, got not match error, help please.


Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/devnet" }


Failed to publish the Move module(s), reason: [warning] Multiple source verification errors found:

- Local dependency did not match its on-chain version at 0000000000000000000000000000000000000000000000000000000000000002::Sui::kiosk
- Local version of dependency 0000000000000000000000000000000000000000000000000000000000000002::kiosk_extension was not found.

This may indicate that the on-chain version(s) of your package's dependencies may behave differently than the source version(s) your package was built against.

Fix this by rebuilding your packages with source versions matching on-chain versions of dependencies, or ignore this warning by re-running with the --skip-dependency-verification flag.

Hey @shiqicao ,

These errors typically mean that the on-chain version of the dependency is on a different version than the you’ve picked on rev="framework/devnet" part of your dependency.

There’s a chance that framework/devnet was behind devnet branch at the time you tried to do this, but this shouldn’t be the case anymore!

1 Like