Skip to content

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

@lexfrl

Description

@lexfrl

Move.toml

[package]
name = "test_lex"
edition = "2024.beta"           # edition = "legacy" to use legacy (pre-2024) Move
# license = ""           # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."]      # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]

[dependencies.lending_core]
git = "https://github.com/naviprotocol/protocol-interface.git"
subdir = "lending_core"
rev = "main"

[addresses]
test_lex = "0x0"

When I'm publishing my module (on mainnet) I'm getting the following:

sui client publish                               
UPDATING GIT DEPENDENCY https://github.com/naviprotocol/protocol-interface.git
UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
UPDATING GIT DEPENDENCY https://github.com/naviprotocol/pyth-crosschain.git
UPDATING GIT DEPENDENCY https://github.com/naviprotocol/wormhole.git
UPDATING GIT DEPENDENCY https://github.com/naviprotocol/dora-interface.git
INCLUDING DEPENDENCY lending_core
INCLUDING DEPENDENCY math
INCLUDING DEPENDENCY oracle
INCLUDING DEPENDENCY Pyth
INCLUDING DEPENDENCY Wormhole
INCLUDING DEPENDENCY SupraOracle
INCLUDING DEPENDENCY supra_validator
INCLUDING DEPENDENCY supra_utils
INCLUDING DEPENDENCY utils
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY MoveStdlib
BUILDING test

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

- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle_utils
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::storage
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::strategy
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::validation
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle
- Local dependency did not match its on-chain version at 1ee7b04f04ef049a6d711d0c0446d7b67b63c27c1397efa9536145085a4d1b7c::supra_utils::utils
- On-chain version of dependency math::ray_math was not found.
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::adaptor_pyth
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::dynamic_calculator
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::version
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::lending
- On-chain version of dependency math::safe_math was not found.
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::constants
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::calculator
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle_provider
- Local dependency did not match its on-chain version at 5d8fbbf6f908a4af8c6d072669a462d53e03eb3c1d863bd0359dc818c69ea706::SupraOracle::SupraSValueFeed
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::account
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::flash_loan
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle_manage
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::incentive_v2
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::incentive
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::manage
- Local dependency did not match its on-chain version at 5d8fbbf6f908a4af8c6d072669a462d53e03eb3c1d863bd0359dc818c69ea706::SupraOracle::price_data_pull
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::adaptor_supra
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::config
- Local dependency did not match its on-chain version at 3a75968d0951fc99e7b336b26088d0f6888efd691b9cf2ac61c3958cfaa6d41b::supra_validator::validator
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::pool
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle_dynamic_getter
- Local dependency did not match its on-chain version at ca441b44943c16be0e6e23c5a955bb971537ea3289ae8016fbf33fffe1fd210f::oracle::oracle_pro
- Local dependency did not match its on-chain version at d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::lending_core::logic
- On-chain version of dependency utils::utils was not found.
- Local version of dependency d899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::safe_math 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.

Does it mean I should somehow patch the module with the actual on-chain versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions