From fcacb897d46dd142014bc8a2df2ef9e74fc7f156 Mon Sep 17 00:00:00 2001 From: command-bot <> Date: Fri, 20 Sep 2024 16:54:07 +0000 Subject: [PATCH] ".git/.scripts/commands/fmt/fmt.sh" --- substrate/frame/revive/src/tests.rs | 3 ++- substrate/frame/revive/src/wasm/runtime.rs | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/substrate/frame/revive/src/tests.rs b/substrate/frame/revive/src/tests.rs index ec8626722e62..0c86b53665a1 100644 --- a/substrate/frame/revive/src/tests.rs +++ b/substrate/frame/revive/src/tests.rs @@ -4314,7 +4314,8 @@ mod run_tests { #[test] fn return_data_api_works() { let (code_return_data_api, _) = compile_module("return_data_api").unwrap(); - let (code_return_with_data, hash_return_with_data) = compile_module("return_with_data").unwrap(); + let (code_return_with_data, hash_return_with_data) = + compile_module("return_with_data").unwrap(); ExtBuilder::default().existential_deposit(100).build().execute_with(|| { let _ = ::Currency::set_balance(&ALICE, 1_000_000); diff --git a/substrate/frame/revive/src/wasm/runtime.rs b/substrate/frame/revive/src/wasm/runtime.rs index b50397ca803e..b2023d0e6d49 100644 --- a/substrate/frame/revive/src/wasm/runtime.rs +++ b/substrate/frame/revive/src/wasm/runtime.rs @@ -1725,9 +1725,8 @@ pub mod env { Environment::new(self, memory, id, input_ptr, input_len, output_ptr, output_len_ptr); let ret = match chain_extension.call(env)? { RetVal::Converging(val) => Ok(val), - RetVal::Diverging { flags, data } => { - Err(TrapReason::Return(ReturnData { flags: flags.bits(), data })) - }, + RetVal::Diverging { flags, data } => + Err(TrapReason::Return(ReturnData { flags: flags.bits(), data })), }; self.chain_extension = Some(chain_extension); ret