Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 4, 2019
1 parent ddf3134 commit e2d13ea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/example-rust-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ impl EvmcVm for ExampleRustVM {
let is_create = context.get_message().kind == evmc_sys::evmc_call_kind::EVMC_CREATE;

if is_create {
evmc_vm::ExecutionResult::new(evmc_sys::evmc_status_code::EVMC_FAILURE, 0, None)
ExecutionResult::failure().into()
} else {
evmc_vm::ExecutionResult::new(
evmc_sys::evmc_status_code::EVMC_SUCCESS,
66,
Some(vec![0xc0, 0xff, 0xee]),
)
ExecutionResult::success(66, Some(vec![0xc0, 0xff, 0xee])).into()
}
}
}

0 comments on commit e2d13ea

Please sign in to comment.