Skip to main content

Publish a contract

After you have written the contract, you can publish it to the blockchain. The contract will be deployed to Sui.
you can see the following output:
The contract has been deployed, let’s query the data using Dubhe.
The query result is Hello, World!, which is the initial value of the message field. You can also use the Dubhe CLI to interact with the contract. For example, you can send a transaction to update the message field.
You can see the transaction was successful. Let’s query the message field again to see the updated value.