Skip to content

Commit

Permalink
rpc: preflight: include system events in fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Sep 23, 2023
1 parent 1d20f08 commit 5f1ed26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/soroban-rpc/lib/preflight/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ fn calculate_unmodified_ledger_entry_bytes(
fn calculate_contract_events_size_bytes(events: &Vec<DiagnosticEvent>) -> Result<u32> {
let mut res: u32 = 0;
for e in events {
if e.event.type_ != ContractEventType::Contract {
if e.event.type_ != ContractEventType::Contract
|| e.event.type_ != ContractEventType::System
{
continue;
}
let event_xdr = e
Expand Down

0 comments on commit 5f1ed26

Please sign in to comment.