Skip to content

Commit

Permalink
Update rust
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast authored and axic committed Nov 5, 2019
1 parent f3d7a4b commit cddddb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/rust/evmc-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mod tests {
// TODO: add other checks from test/unittests/test_helpers.cpp
assert_eq!(size_of::<evmc_bytes32>(), 32);
assert_eq!(size_of::<evmc_address>(), 20);
assert!(size_of::<evmc_result>() <= 64);
assert!(size_of::<evmc_result>() <= 128);
assert!(size_of::<evmc_vm>() <= 64);
}
}
6 changes: 3 additions & 3 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,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 @@ -532,7 +532,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 @@ -778,7 +778,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 cddddb7

Please sign in to comment.