Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelang committed Mar 13, 2019
1 parent 8c6a7ce commit 016647c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ impl EvmcResult {
gasleft: i64,
output: &[u8],
create_addr: Option<ffi::evmc_address>,
) -> Self
{
EvmcResult {
) -> Self {
EvmcResult(Box::new(ffi::evmc_result {
status_code: status,
gas_left: i64,
output_data: output.as_ptr(),
Expand All @@ -28,12 +27,10 @@ impl EvmcResult {
create_address: if let Some(addr) = create_addr {
addr
} else {
evmc_address {
bytes: [0u8; 20],
}
evmc_address { bytes: [0u8; 20] }
},
padding: [0u8; 4],
}
}))
}
}

Expand Down

0 comments on commit 016647c

Please sign in to comment.