Questions tagged [sui]

Sui is a decentralized Layer 1 blockchain with strong focus on asset ownership.

Sui platform seeks to provide a flexible network that you can leverage to shape the web3 landscape

The Sui platform is built on Sui Move, which is derived from the core Move programming language.

Read more in the documentation.

21 questions
3
votes
1 answer

How do I call a function in a different Move module / smart contract?

I know there is a Move module (smart contract) on chain with a function that looks like this: public entry fun do_nothing() {} I know it is deployed at 6286dfd5e2778ec069d5906cd774efdba93ab2bec71550fa69363482fbd814e7::other::do_nothing. You can see…
Daniel Porteous
  • 5,536
  • 3
  • 25
  • 44
3
votes
1 answer

How to define Move Error types in Sui blockchain

Trying to understand the idiomatic way we should set Errors in Sui blockchain smart contracts. From the provided examples it seems that we should define constants per different expected error i.e. in Marketplace smart contract two errors are…
Kostas Kryptos
  • 4,081
  • 2
  • 23
  • 24
2
votes
1 answer

Local dependency cannot be resolved

I know there is a similiar question right below this one but the answer does not solve my issue. I have a published package and would like to refer to it from another one. The dependency is defined locally (not git), however the build command…
calimoose
  • 115
  • 6
1
vote
0 answers

in sui move, how to call on chain module without it's source code?

i want to call other module's function in my contract, but i haven't it's source code, just can see it's bytecode onchain; in sodility has interface contract, and just need a proto(interface) , then can call any contract even has no source code as…
sleeping
  • 31
  • 4
1
vote
1 answer

Swap programmatically on Cetus DEX from SUI blockchain

I want to make a swap programmatically on the Cetus DEX from SUI blockchain, but I have some problems about understanding the inputs of the methods for swap. This is the contract (module pool_script):…
KunLun
  • 3,109
  • 3
  • 18
  • 65
1
vote
0 answers

EthosConnect gets stuck in the "loading" status

I am using EthosConnect in my nextjs app. I was able to connect to the Sui wallet however after I refreshed the page it show the following errors Unhandled Runtime Error Error: Error fetching owned object: Error: RPC Error: Method not found for…
channa ly
  • 9,479
  • 14
  • 53
  • 86
1
vote
1 answer

test for init function from examples doesn't works

When I run code from the official repo I got the next error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: SuiMoveVerificationError, source: Some("0000000000000000000000000000000000000000::exp01::init at…
ChzChz
  • 57
  • 3
1
vote
1 answer

Transfer coins in move package

I wrote a mov package in which anyone can mint token (very new to move) module fungible_tokens::rcoin { use sui::coin::{Self, Coin, TreasuryCap}; use sui::transfer; use sui::tx_context::{Self, TxContext}; struct RCOIN has drop {} …
Alwaysblue
  • 9,948
  • 38
  • 121
  • 210
1
vote
3 answers

Failed to build Move modules: "Unable to resolve packages for package 'my_first_package'"

New to move and sui. I am trying to follow the documentation on Sui and attempted to use the command sui move build to build my move package. I encountered this error: Failed to build Move modules: "Unable to resolve packages for package…
Jim
  • 450
  • 2
  • 10
1
vote
3 answers

Failure in verification of Move Module for SUI

So I was following the documentation for beginners on SUI, I faced an issue with my Move.toml as I was building my file with sui move build. And I got the following error Failed to verify the Move module, reason: "Sui framework version mismatch…
chia yongkang
  • 786
  • 10
  • 20
0
votes
1 answer

error: could not find `sui` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`

When trying to install sui binaries using cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui as suggested by the official docs, gives the below error Updating git repository…
Saurav Rao
  • 404
  • 5
  • 7
0
votes
1 answer

Error compiling 'diesel' while installing Sui on virtual Ubuntu machine using Rust and Cargo

It's my first public question here, I'm sorry if it lacks any information. I'm trying to install Sui install Sui on a virtual Ubuntu machine on WSL2. This is using Rust, although I'm aswell pretty new to this. Before installing Sui, I installed the…
0
votes
0 answers

Why are the Sui binaries always rebuilt with cargo

I've inherited the building of a backend that integrates with the Sui blockchain. The only Sui-related crate declaration I found is this: sui-sdk = { git = "https://github.com/MystenLabs/sui", rev = "09b2081" } I can see it corresponds to the…
Milkncookiez
  • 6,817
  • 10
  • 57
  • 96
0
votes
1 answer

How to split coin to transfer Sui

Here is what I'm trying: public entry fun purchase_nft( marketplace: &mut Marketplace, item_id: ID, coin: Coin, ctx: &mut TxContext ) { let sender = tx_context::sender(ctx); let listing =…
marethyu
  • 95
  • 6
0
votes
1 answer

Calling Move (entry) functions using SUI CLI

I have published a module called certificates at 0x426ff70c987a00b9384b102f10a4f8bb8945141f \identities>sui client object --id 0x426ff70c987a00b9384b102f10a4f8bb8945141f ----- Move Package (0x426ff70c987a00b9384b102f10a4f8bb8945141f[1]) ----- Owner:…
Jim
  • 450
  • 2
  • 10
1
2