Skip to content

Commit

Permalink
fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivasilescu24 committed Aug 29, 2024
1 parent cc48860 commit 0441536
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/core/src/gateway/gateway_tx_retrieve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 0441536

Please sign in to comment.