From 7d939effe82c34651fd002d731c726afe5f43c26 Mon Sep 17 00:00:00 2001 From: Paul Flynn Date: Mon, 15 Jul 2024 22:41:05 -0400 Subject: [PATCH] Swap parameter order in check_access method call The method call to check_access in main.rs has been updated. The order of parameters has been switched, with claims_result.unwrap() coming before locator.body.clone(). This provides a more logical order for processing input parameters. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5f28700..10025d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -321,7 +321,7 @@ async fn handle_rewrap( // execute contract let contract = contract_simple_abac::simple_abac::SimpleAbac::new(); if claims_result.is_ok() { - if !contract.check_access(locator.body.clone(), claims_result.unwrap()) { + if !contract.check_access(claims_result.unwrap(), locator.body.clone()) { // binary response let mut response_data = Vec::new(); response_data.push(MessageType::RewrappedKey as u8);