Skip to content

Commit

Permalink
Remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Dec 17, 2024
1 parent a97f8e3 commit 684bf06
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions rpc-state-reader/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn execute_transaction(
.context("block number had no previous")?;
let current_reader = RpcStateReader::new(chain, previous_block_number);
let mut state = CachedState::new(current_reader);
let execution_info = execute_transaction_with_state(&mut state, &transaction, &context)?;
let execution_info = transaction.execute(&mut state, &context)?;

Ok(execution_info)
}
Expand Down Expand Up @@ -123,16 +123,6 @@ pub fn fetch_transaction(
Ok((transaction, context))
}

pub fn execute_transaction_with_state(
state: &mut CachedState<impl StateReader>,
transaction: &BlockiTransaction,
context: &BlockContext,
) -> anyhow::Result<TransactionExecutionInfo> {
let execution_info = transaction.execute(state, context)?;

Ok(execution_info)
}

#[cfg(test)]
mod tests {
use std::{
Expand Down

0 comments on commit 684bf06

Please sign in to comment.