Skip to content

Commit

Permalink
Run cargo fmt on the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Jan 14, 2025
1 parent 0ec8924 commit 40b031d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions runtime/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ pub trait Handler {
/// Set storage value of address at index.
fn set_storage(&mut self, address: H160, index: H256, value: H256) -> Result<(), ExitError>;
/// Set transient storage value of address at index, transient storage gets discarded after every transaction. (see EIP-1153)
fn set_transient_storage(
&mut self,
address: H160,
index: H256,
value: H256,
);
fn set_transient_storage(&mut self, address: H160, index: H256, value: H256);
/// Create a log owned by address with given topics and data.
fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>) -> Result<(), ExitError>;
/// Mark an address to be deleted, with funds transferred to target.
Expand Down
7 changes: 1 addition & 6 deletions src/executor/stack/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1210,12 +1210,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> Handler
Ok(())
}

fn set_transient_storage(
&mut self,
address: H160,
index: H256,
value: H256,
) {
fn set_transient_storage(&mut self, address: H160, index: H256, value: H256) {
self.state.set_transient_storage(address, index, value);
}

Expand Down

0 comments on commit 40b031d

Please sign in to comment.