Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd committed Dec 16, 2022
1 parent dbd856c commit 2994ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/src/eval/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ pub fn call<H: Handler>(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)
}
}
Expand Down
6 changes: 3 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub struct Runtime<'config> {
status: Result<(), ExitReason>,
return_data_buffer: Vec<u8>,
return_data_len: U256,
return_dat_offset: U256,
return_data_offset: U256,
context: Context,
_config: &'config Config,
}
Expand All @@ -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,
}
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 2994ee1

Please sign in to comment.