From 8bf38591a6a06e1e51481a3c57cd2fb0ae5ded9a Mon Sep 17 00:00:00 2001 From: Agusrodri Date: Wed, 19 Jun 2024 07:13:25 -0700 Subject: [PATCH] fmt --- interpreter/src/runtime.rs | 7 ++++++- interpreter/tests/usability.rs | 7 ++++++- src/backend/overlayed.rs | 7 ++++++- src/standard/invoker/mod.rs | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/interpreter/src/runtime.rs b/interpreter/src/runtime.rs index 0aecaadea..919086005 100644 --- a/interpreter/src/runtime.rs +++ b/interpreter/src/runtime.rs @@ -156,7 +156,12 @@ pub trait RuntimeBackend: RuntimeBaseBackend { /// Fully delete storages of an account. fn reset_storage(&mut self, address: H160); /// Set code of an account. - fn set_code(&mut self, address: H160, code: Vec, caller: Option) -> Result<(), ExitError>; + fn set_code( + &mut self, + address: H160, + code: Vec, + caller: Option, + ) -> Result<(), ExitError>; /// Reset balance of an account. fn reset_balance(&mut self, address: H160); fn deposit(&mut self, target: H160, value: U256); diff --git a/interpreter/tests/usability.rs b/interpreter/tests/usability.rs index 93e58b77d..d25230a1e 100644 --- a/interpreter/tests/usability.rs +++ b/interpreter/tests/usability.rs @@ -165,7 +165,12 @@ impl RuntimeBackend for UnimplementedHandler { unimplemented!() } - fn set_code(&mut self, _address: H160, _code: Vec, _caller: Option) -> Result<(), ExitError> { + fn set_code( + &mut self, + _address: H160, + _code: Vec, + _caller: Option, + ) -> Result<(), ExitError> { unimplemented!() } diff --git a/src/backend/overlayed.rs b/src/backend/overlayed.rs index 825723d01..4f302c23e 100644 --- a/src/backend/overlayed.rs +++ b/src/backend/overlayed.rs @@ -192,7 +192,12 @@ impl RuntimeBackend for OverlayedBackend { self.substate.storage_resets.insert(address); } - fn set_code(&mut self, address: H160, code: Vec, _caller: Option) -> Result<(), ExitError> { + fn set_code( + &mut self, + address: H160, + code: Vec, + _caller: Option, + ) -> Result<(), ExitError> { self.substate.codes.insert(address, code); Ok(()) } diff --git a/src/standard/invoker/mod.rs b/src/standard/invoker/mod.rs index b1ad9f538..7797dc04e 100644 --- a/src/standard/invoker/mod.rs +++ b/src/standard/invoker/mod.rs @@ -375,7 +375,7 @@ where retbuf, &mut substate, handler, - None + None, )?; Ok(TransactValue::Create {