Skip to content

Commit

Permalink
fix formatting via cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
luxeave committed Aug 12, 2024
1 parent 7dbdd91 commit b32e661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icp_subaccount_indexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ async fn sweep_subaccount(subaccountid_hex: String, amount: f64) -> Result<u64,

// Convert amount to e8s, handling potential precision issues
let amount_e8s = (amount * 100_000_000.0).round() as u64;

// Check for potential overflow or underflow
if amount_e8s == u64::MAX || amount < 0.0 {
return Err(Error {
Expand Down

0 comments on commit b32e661

Please sign in to comment.