Skip to content

Commit 08ee78e

Browse files
Merge pull request #622 from dfinity/sesi200-patch-1
fix: ledger installation instructions
2 parents 17307e2 + 80997e3 commit 08ee78e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/tokens_transfer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export LEDGER_ACC=$(dfx ledger account-id)
105105
### Step 8: Deploy the ledger canister to your network:
106106

107107
```
108-
dfx canister install ledger --argument "(variant {Init = record { token_name = \"NAME\"; token_symbol = \"SYMB\"; transfer_fee = 1000000; metadata = vec {}; minting_account = record {owner = principal \"$(dfx --identity minter identity get-principal)\";}; initial_balances = vec {}; archive_options = record {num_blocks_to_archive = 1000000; trigger_threshold = 1000000; controller_id = principal \"$(dfx identity get-principal)\"}; }})"
108+
dfx deploy ledger --argument "(variant {Init = record { token_name = \"NAME\"; token_symbol = \"SYMB\"; transfer_fee = 1000000; metadata = vec {}; minting_account = record {owner = principal \"$(dfx --identity minter identity get-principal)\";}; initial_balances = vec {}; archive_options = record {num_blocks_to_archive = 1000000; trigger_threshold = 1000000; controller_id = principal \"$(dfx identity get-principal)\"}; }})"
109109
```
110110

111111
If you want to setup the ledger in a way that matches the production deployment, you should deploy it with archiving enabled. In this setup, the ledger canister dynamically creates new canisters to store old blocks. We recommend using this setup if you are planning to exercise the interface for fetching blocks.

0 commit comments

Comments
 (0)