Skip to content

Commit

Permalink
Merge pull request #622 from dfinity/sesi200-patch-1
Browse files Browse the repository at this point in the history
fix: ledger installation instructions
  • Loading branch information
letmejustputthishere authored Nov 8, 2023
2 parents 17307e2 + 80997e3 commit 08ee78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/tokens_transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 08ee78e

Please sign in to comment.