From 7a62c3620b80bec0fb09f6039ff8bbe44395687c Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Mon, 5 Sep 2022 16:33:19 +0300 Subject: [PATCH] Add doc about error case in the check function Signed-off-by: Daniil Polyakov --- core/src/smartcontracts/isi/permissions/checks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/smartcontracts/isi/permissions/checks.rs b/core/src/smartcontracts/isi/permissions/checks.rs index 4a9ab0dd146..405494b8b43 100644 --- a/core/src/smartcontracts/isi/permissions/checks.rs +++ b/core/src/smartcontracts/isi/permissions/checks.rs @@ -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,