From 2994ee112b85f9906955a3ae96fcebf20da42462 Mon Sep 17 00:00:00 2001 From: Michael Birch Date: Fri, 16 Dec 2022 15:38:13 +0100 Subject: [PATCH] Fix typo --- runtime/src/eval/system.rs | 2 +- runtime/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/eval/system.rs b/runtime/src/eval/system.rs index f2e77f6de..574355437 100644 --- a/runtime/src/eval/system.rs +++ b/runtime/src/eval/system.rs @@ -394,7 +394,7 @@ pub fn call(runtime: &mut Runtime, scheme: CallScheme, handler: &mut } Capture::Trap(interrupt) => { runtime.return_data_len = out_len; - runtime.return_dat_offset = out_offset; + runtime.return_data_offset = out_offset; Control::CallInterrupt(interrupt) } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b6b8a27c2..3cf482715 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -112,7 +112,7 @@ pub struct Runtime<'config> { status: Result<(), ExitReason>, return_data_buffer: Vec, return_data_len: U256, - return_dat_offset: U256, + return_data_offset: U256, context: Context, _config: &'config Config, } @@ -130,7 +130,7 @@ impl<'config> Runtime<'config> { status: Ok(()), return_data_buffer: Vec::new(), return_data_len: U256::zero(), - return_dat_offset: U256::zero(), + return_data_offset: U256::zero(), context, _config: config, } @@ -181,7 +181,7 @@ impl<'config> Runtime<'config> { eval::finish_call( self, self.return_data_len, - self.return_dat_offset, + self.return_data_offset, reason, return_data, )