From 80997e37ba72e9b2a77995b220c85e673f7e5dcb Mon Sep 17 00:00:00 2001 From: Severin Siffert Date: Wed, 8 Nov 2023 11:00:18 +0100 Subject: [PATCH] fix: ledger installation instructions --- rust/tokens_transfer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/tokens_transfer/README.md b/rust/tokens_transfer/README.md index 7ad631ed7..aaae17b65 100644 --- a/rust/tokens_transfer/README.md +++ b/rust/tokens_transfer/README.md @@ -105,7 +105,7 @@ export LEDGER_ACC=$(dfx ledger account-id) ### Step 8: Deploy the ledger canister to your network: ``` -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)\"}; }})" +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)\"}; }})" ``` 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.