Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Nov 26, 2019
1 parent 4cbdccd commit 4f4da10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
7 changes: 1 addition & 6 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ pub struct ExecutionContext<'a> {

impl ExecutionResult {
/// Manually create a result.
pub fn new(
_status_code: StatusCode,
_gas_left: i64,
_output: Option<&[u8]>,
) -> Self {
pub fn new(_status_code: StatusCode, _gas_left: i64, _output: Option<&[u8]>) -> Self {
ExecutionResult {
status_code: _status_code,
gas_left: _gas_left,
Expand Down Expand Up @@ -858,7 +854,6 @@ mod tests {
assert!(b.output().is_none());
assert!(b.create_address().is_some());
assert_eq!(b.create_address().unwrap(), &Address::default());

}

#[test]
Expand Down
14 changes: 7 additions & 7 deletions bindings/rust/evmc-vm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ mod tests {

#[test]
fn message_kind() {
// assert_eq!(MessageKind::Call, ffi::evmc_call_kind::EVMC_CALL);
// assert_eq!(MessageKind::CallCode, ffi::evmc_call_kind::EVMC_CALLCODE);
// assert_eq!(
// MessageKind::DelegateCall,
// ffi::evmc_call_kind::EVMC_DELEGATECALL
// );
// assert_eq!(MessageKind::Create, ffi::evmc_call_kind::EVMC_CREATE);
// assert_eq!(MessageKind::Call, ffi::evmc_call_kind::EVMC_CALL);
// assert_eq!(MessageKind::CallCode, ffi::evmc_call_kind::EVMC_CALLCODE);
// assert_eq!(
// MessageKind::DelegateCall,
// ffi::evmc_call_kind::EVMC_DELEGATECALL
// );
// assert_eq!(MessageKind::Create, ffi::evmc_call_kind::EVMC_CREATE);
}

#[test]
Expand Down

0 comments on commit 4f4da10

Please sign in to comment.