Skip to content

Commit

Permalink
Merge pull request #79 from sui-foundation/dan/fixes
Browse files Browse the repository at this point in the history
Update to Unit One READMEs
  • Loading branch information
hyd628 authored May 23, 2024
2 parents 0c9c5bd + 3c46de0 commit c250caf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified unit-one/images/mint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified unit-one/images/publish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions unit-one/lessons/4_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In Sui Move, entry functions are simply functions that can be called by transact

Functions called directly through a transaction typically have an instance of `TxContext` as the last parameter. This is a special parameter set by the Sui Move VM and does not need to be specified by the user calling the function.

The `TxContext` object contains [essential information](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/packages/sui-framework/sources/tx_context.move) about the transaction used to call the entry function, such as the sender's address, the signer's address, the tx's epoch, etc.
The `TxContext` object contains [essential information](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/packages/sui-framework/sources/tx_context.move) about the transaction used to call the entry function, such as the sender's address, the tx's digest ID, the tx's epoch, etc.

## Create the `mint` Function

Expand All @@ -55,5 +55,5 @@ We can define our minting function in the Hello World example as the following:
}
```

This function simply creates a new instance of the `HelloWorldObject` custom type, then uses the Sui system [`public_transfer`](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/docs/transfer.md#function-public_transfer) function to send it to the transaction caller.
This function simply creates a new instance of the `HelloWorldObject` custom type, then uses the Sui system [`public_transfer`](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/docs/sui-framework/transfer.md#function-public_transfer) function to send it to the transaction caller.

0 comments on commit c250caf

Please sign in to comment.