Skip to content

The example package publish tx failed with error 'PublishUpgradeMissingDependency in command 0' #71

@ws4charlie

Description

@ws4charlie

The sui example package publish tx failed with below errors in the sui client publish CLI

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

- On-chain version of dependency gateway::evm was not found.
- On-chain version of dependency gateway::gateway was not found.
- Local version of dependency 4496908a03cd710d7bcb2a98c959e4b2a1eff224dce6e9ce6a941aa9e4e500f4::evm was not found.
- Local version of dependency 4496908a03cd710d7bcb2a98c959e4b2a1eff224dce6e9ce6a941aa9e4e500f4::gateway 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.

If we add --skip-dependency-verification flag, the publish failed in Sui explorer like below

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions