Skip to content

Commit

Permalink
Add doc about error case in the check function
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
  • Loading branch information
Arjentix committed Sep 5, 2022
1 parent 1050e14 commit 7a62c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/smartcontracts/isi/permissions/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ pub fn check_query_in_instruction(
/// Fails if there is a mismatch between a permissions `token` and its `definition`:
/// - If a `token` doesn't have all parameters from its `definition`
/// - If a `token` has parameters that are not not in its `definition`
/// - If a `token` has a parameter with a different type than in its `definition`
pub fn check_permission_token_parameters(
token: &PermissionToken,
definition: &PermissionTokenDefinition,
Expand Down

0 comments on commit 7a62c36

Please sign in to comment.