Skip to content

Commit

Permalink
cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirms committed Dec 6, 2023
1 parent b5cceb6 commit feb4352
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/soroban-rpc/lib/preflight/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ fn calculate_host_function_soroban_resources(
let budget_instructions = budget
.get_cpu_insns_consumed()
.context("cannot get instructions consumed")?;
let instructions = max(budget_instructions + 1000000, budget_instructions * 120 / 100);
let instructions = max(
budget_instructions + 1000000,
budget_instructions * 120 / 100,
);
Ok(SorobanResources {
footprint: ledger_footprint,
instructions: u32::try_from(instructions)?,
Expand Down

0 comments on commit feb4352

Please sign in to comment.