Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranduy1dol committed Aug 15, 2024
1 parent 49c0999 commit a5ad3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/settlement-clients/aptos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ impl SettlementClient for AptosSettlementClient {
let response = client.view(&request, None).await?.into_inner();

let block_number = response.first().unwrap().as_str().unwrap();
eprintln!("block_number = {:#?}", block_number);
Ok(block_number.parse::<u64>().unwrap())
}
}
Expand Down Expand Up @@ -297,6 +296,9 @@ mod test {
let verify_inclusion = settlement_client.verify_tx_inclusion(result.as_str()).await.unwrap();
eprintln!("verify_inclusion = {:#?}", verify_inclusion);
assert_eq!(verify_inclusion, SettlementVerificationStatus::Verified);

let block_number = settlement_client.get_last_settled_block().await?;
eprintln!("block_number = {:#?}", block_number);
Ok(())
})
})
Expand Down

0 comments on commit a5ad3ba

Please sign in to comment.