Skip to content

Commit

Permalink
minor clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
bogwar committed Nov 28, 2024
1 parent bf1fde0 commit 035ec3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion standards/ICRC-106/ICRC-106.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Compliant ledgers MUST also implement the following endpoint for programmaticall

```candid
icrc106_get_index_principal: () -> GetIndexPrincipalsResult query;
icrc106_get_index_principal: () -> (GetIndexPrincipalsResult) query;
type GetIndexPrincipalResult = variant {
Ok : principal;
Expand All @@ -57,6 +57,7 @@ The metadata entry `icrc106:index_principal` and the `icrc106_get_index_principa

- The `icrc106:index_principal` metadata entry MUST represent the textual form of the principal returned by the `icrc106_get_index_principal` method.
- The `icrc106_get_index_principal` method MUST return the principal corresponding to the index canister associated with the ledger, as specified in the `icrc106:index_principal` metadata entry.
- If the entry `icrc106:index_principal` does not exist or is not appropriately set, the endpoint should return `IndexPrincipalNotSet`.

This requirement ensures that both mechanisms reliably point to the same index canister.

Expand Down

0 comments on commit 035ec3e

Please sign in to comment.