I try to publish the sui move after build it successfully. But it shows the error:
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::table_vec
- Local dependency did not match its on-chain version at 0000000000000000000000000000000000000000000000000000000000000002::Sui::tx_context
- Local dependency did not match its on-chain version at 0000000000000000000000000000000000000000000000000000000000000002::Sui::ecdsa_k1
- Local dependency did not match its on-chain version at 0000000000000000000000000000000000000000000000000000000000000002::Sui::kiosk_extension
- Local dependency did not match its on-chain version at 0000000000000000000000000000000000000000000000000000000000000002::Sui::transfer
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.
I use sui client publish --gas-budget 3000000000 to run on my terminal.
[warn] Client/Server api version mismatch, client api version : 1.10.1, server api version : 1.11.0
UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY MoveStdlib
BUILDING basic
Here is the module I made on VSCode:
module basic::DEMO {
use sui::object::{Self, UID};
use sui::tx_context::{Self, TxContext};
use sui::transfer;
struct Wallet has key {
id: UID,
balance: u128,
name: vector<u8>
}
fun init(ctx: &mut TxContext) {
let wallet = Wallet {
id: object::new(ctx),
balance: 1_000_000_000_000_000,
name: b"Maythunguyen",
};
transfer::transfer(wallet, tx_context::sender(ctx));
}
}
Move.toml:
[package]
name = "basic"
version = "0.0.1"
[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
[addresses]
basic = "0x0"
I've already built it successfully
UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY MoveStdlib
BUILDING basic
Please try to fix this
to this one
and run this on cmd