Skip to content

Commit

Permalink
Update rust
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Sep 28, 2019
1 parent 60bb643 commit 37df91a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl<'a> ExecutionContext<'a> {
self.context as *mut ffi::evmc_host_context,
&message as *const ffi::evmc_message,
)
.into()
.into()
}
}

Expand Down Expand Up @@ -465,7 +465,7 @@ impl Into<ffi::evmc_result> for ExecutionResult {
} else {
Address { bytes: [0u8; 20] }
},
padding: [0u8; 4],
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
}
}
}
Expand Down Expand Up @@ -550,7 +550,7 @@ mod tests {
output_size: 4,
release: Some(test_result_dispose),
create_address: Address { bytes: [0u8; 20] },
padding: [0u8; 4],
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
};

let r: ExecutionResult = f.into();
Expand Down Expand Up @@ -796,7 +796,7 @@ mod tests {
output_size: msg.input_size,
release: None,
create_address: ffi::evmc_address::default(),
padding: [0u8; 4],
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
}
}

Expand Down

0 comments on commit 37df91a

Please sign in to comment.