Skip to content

Commit 112ad6d

Browse files
authored
[first_fa] fix typos not addressed in aptos-labs#8830 (aptos-labs#9045)
1 parent 5560a2d commit 112ad6d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

aptos-move/move-examples/fungible_asset/fa_coin/sources/FACoin.move

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// A 2-in-1 module that combines managed_fungible_asset and coin_example into one module that when deployed, the
22
/// deployer will be creating a new managed fungible asset with the hardcoded supply config, name, symbol, and decimals.
3-
/// The address of the asset can be obtained via get_metadata(). As a simple version, it only deal with primary stores.
3+
/// The address of the asset can be obtained via get_metadata(). As a simple version, it only deals with primary stores.
44
module FACoin::fa_coin {
55
use aptos_framework::fungible_asset::{Self, MintRef, TransferRef, BurnRef, Metadata, FungibleAsset};
66
use aptos_framework::object::{Self, Object};
@@ -90,7 +90,7 @@ module FACoin::fa_coin {
9090
fungible_asset::set_frozen_flag(transfer_ref, wallet, true);
9191
}
9292

93-
/// Freeze an account so it cannot transfer or receive fungible assets.
93+
/// Unfreeze an account so it can transfer or receive fungible assets.
9494
public entry fun unfreeze_account(admin: &signer, account: address) acquires ManagedFungibleAsset {
9595
let asset = get_metadata();
9696
let transfer_ref = &authorized_borrow_refs(admin, asset).transfer_ref;

developer-docs-site/docs/tutorials/first-fungible-asset.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ git clone https://github.com/aptos-labs/aptos-core.git
4343
Navigate to the TypeScript SDK directory:
4444

4545
```bash
46-
cd ~/aptos-core/ecosystem/typescript/sdk
46+
cd ~/aptos-core/ecosystem/typescript/sdk/examples/typescript
4747
```
4848

4949
Install the necessary dependencies:
@@ -55,7 +55,6 @@ pnpm install
5555
Run the TypeScript [`your_fungible_asset`](https://github.com/aptos-labs/aptos-core/blob/main/ecosystem/typescript/sdk/examples/typescript/your_fungible_asset.ts) example:
5656

5757
```bash
58-
cd examples/typescript
5958
pnpm your_fungible_asset ~/aptos-core/aptos-move/move-examples/fungible_asset/fa_coin
6059
```
6160

@@ -193,7 +192,7 @@ So `Withdraw`, `Deposit`, and `Transfer` in the management module have different
193192
194193
#### Step 4.3.1: Initializing "FACoin" metadata object
195194
196-
After publish the module to the Aptos blockchain, the entity that published that coin type should initialize a metadata object describing the information about this FA:
195+
After publishing the module to the Aptos blockchain, the entity that published that coin type should initialize a metadata object describing the information about this FA:
197196
198197
```rust title="fa_coin.move snippet"
199198
:!: static/move-examples/fungible_asset/fa_coin/sources/FACoin.move initialize
@@ -230,7 +229,7 @@ Similarly, the module provides `burn`, `set_frozen_flag`, `transfer`, `Withdraw`
230229
Aptos provides several APIs to support FA flows with same names in different modules:
231230
232231
- `fungible_asset::{transfer/withdraw/deposit}`: Move FA between different unfrozen fungible stores objects.
233-
- `fungible_asset::{transfer/withdraw/deposit}_with_ref`: Move FA between different fungible stores objects with the corresponding `TransferRef` regardless their frozen status.
232+
- `fungible_asset::{transfer/withdraw/deposit}_with_ref`: Move FA between different fungible stores objects with the corresponding `TransferRef` regardless of their frozen status.
234233
- `primary_fungible_store::{transfer/withdraw/deposit}`: Move FA between unfrozen primary stores of different accounts.
235234
236235
:::tip important

0 commit comments

Comments
 (0)