From 044153613ea4dbedd53822b4ff0681e341b99ec0 Mon Sep 17 00:00:00 2001 From: Andrei Vasilescu Date: Thu, 29 Aug 2024 17:07:39 +0300 Subject: [PATCH] fixed clippy warnings --- sdk/core/src/gateway/gateway_tx_retrieve.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/core/src/gateway/gateway_tx_retrieve.rs b/sdk/core/src/gateway/gateway_tx_retrieve.rs index c5bbda6adf..452d37b3e0 100644 --- a/sdk/core/src/gateway/gateway_tx_retrieve.rs +++ b/sdk/core/src/gateway/gateway_tx_retrieve.rs @@ -28,8 +28,10 @@ impl GatewayProxy { .await .unwrap(); - if transaction_info_with_results.smart_contract_results.len() > 0 - && issue_found == false + if !transaction_info_with_results + .smart_contract_results + .is_empty() + && !issue_found { let first_scr = &transaction_info_with_results.smart_contract_results[0];