From 40b031d3600441738a394c6ca3a6c26c052a82fb Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Tue, 14 Jan 2025 11:49:08 +0100 Subject: [PATCH] Run cargo fmt on the codebase --- runtime/src/handler.rs | 7 +------ src/executor/stack/executor.rs | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/runtime/src/handler.rs b/runtime/src/handler.rs index 8d80b33c..379c4971 100644 --- a/runtime/src/handler.rs +++ b/runtime/src/handler.rs @@ -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, data: Vec) -> Result<(), ExitError>; /// Mark an address to be deleted, with funds transferred to target. diff --git a/src/executor/stack/executor.rs b/src/executor/stack/executor.rs index 874bca83..43189025 100644 --- a/src/executor/stack/executor.rs +++ b/src/executor/stack/executor.rs @@ -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); }