Skip to content

Commit

Permalink
piecrust: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Apr 10, 2024
1 parent bc8b16a commit 7062a00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion piecrust/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl WrappedInstance {
f(&mut memory_bytes[offset..][..ARGBUF_LEN])
})
}

pub(crate) fn with_arg_buf_b_mut<F, R>(&mut self, f: F) -> R
where
F: FnOnce(&mut [u8]) -> R,
Expand Down
4 changes: 2 additions & 2 deletions piecrust/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ impl Session {
let ret = instance.read_bytes_from_arg_buffer(ret_len as u32);

let mut spent = limit - instance.get_remaining_gas();
if instance.reset_free() {

if instance.reset_free() {
// the call has been paid for by the target contract
// so we can set the spent amount to zero,
// note that gas spent between the end of
Expand Down

0 comments on commit 7062a00

Please sign in to comment.