Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarsaur committed Dec 14, 2023
1 parent 9e216ae commit a959a78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions cmd/soroban-rpc/lib/preflight/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ pub(crate) fn compute_host_function_transaction_data_and_min_fee(
current_ledger_seq: u32,
) -> Result<(SorobanTransactionData, i64)> {
let ledger_changes = get_ledger_changes(budget, post_storage, pre_storage, TtlEntryMap::new())?;
let soroban_resources =
calculate_host_function_soroban_resources(&ledger_changes, &post_storage.footprint, budget, resource_config)
.context("cannot compute host function resources")?;
let soroban_resources = calculate_host_function_soroban_resources(
&ledger_changes,
&post_storage.footprint,
budget,
resource_config,
)
.context("cannot compute host function resources")?;

let contract_events_size =
calculate_contract_events_size_bytes(events).context("cannot calculate events size")?;
Expand Down Expand Up @@ -131,7 +135,7 @@ fn calculate_host_function_soroban_resources(
ledger_changes: &[LedgerEntryChange],
footprint: &Footprint,
budget: &Budget,
resource_config: CResourceConfig
resource_config: CResourceConfig,
) -> Result<SorobanResources> {
let ledger_footprint = storage_footprint_to_ledger_footprint(footprint)
.context("cannot convert storage footprint to ledger footprint")?;
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/lib/preflight/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn get_default_c_xdr_vector() -> CXDRVector {
#[repr(C)]
#[derive(Copy, Clone)]
pub struct CResourceConfig {
pub instruction_leeway: u64
pub instruction_leeway: u64,
}

#[repr(C)]
Expand Down

0 comments on commit a959a78

Please sign in to comment.