Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Jan 9, 2025
1 parent aa9e527 commit 1ad9901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ in which we check if we have enough voucher token for a LED bulb and then transf

But wait, remember that we said tokens are different from coins? With `token::spend` we again get a `ActionRequest` object which we have to approve.
This time we can't approve with the treasury capability as the caller is the household. And even if we would have the treasury capability,
rememver how we learned that the treasury capability grants as admin rights? So it would confirm everything without checkint the rules. But here we actually want to make use of the policy rules feature.
remember how we learned that the treasury capability grants as admin rights? So it would confirm everything without checkint the rules. But here we actually want to make use of the policy rules feature.
As we should only be allowed as a household to spend the voucher token for LED bulbs in a certified shop.

So let's look into rules and add some to our policy.
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/move/clt-tutorial/sources/clt_tutorial.move
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module clt_tutorial::voucher {
/// hence does not need to be confirmed; however, the `transfer` action
/// does require a confirmation and can be confirmed with `TreasuryCap`.
/// Keep in mind that confirming with `TreasuryCap` is ignoring the rules,
/// hence why we are allowd to transfer to a non-shop address in this case.
/// hence why we are allowed to transfer to a non-shop address in this case.
public fun gift_voucher(
cap: &mut TreasuryCap<VOUCHER>,
amount: u64,
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/move/clt-tutorial/sources/rules.move
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module clt_tutorial::allowlist_rule {
}
}

/// Removes addresses frome the `allowlist_rule` for a given action.
/// Removes addresses from the `allowlist_rule` for a given action.
public fun remove_addresses<T>(
policy: &mut TokenPolicy<T>,
cap: &TokenPolicyCap<T>,
Expand Down

0 comments on commit 1ad9901

Please sign in to comment.