Skip to content

Commit

Permalink
tsets: precompile test doesn't needs a host context
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 2, 2019
1 parent 7ae7a96 commit fd1eb3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/vmtester/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,11 @@ TEST_F(evmc_vm_test, precompile_test)
destination.bytes[18] = static_cast<uint8_t>(i >> 8);
destination.bytes[19] = static_cast<uint8_t>(i & 0xff);

evmc_context* context = example_host_create_context();
evmc_message msg{
EVMC_CALL, 0, 0, 65536, destination, evmc_address{}, NULL, 0, evmc_uint256be{},
evmc_bytes32{}};

evmc_result result = vm->execute(vm, context, EVMC_MAX_REVISION, &msg, nullptr, 0);
evmc_result result = vm->execute(vm, nullptr, EVMC_MAX_REVISION, &msg, nullptr, 0);

// Validate some constraints

Expand All @@ -212,7 +211,5 @@ TEST_F(evmc_vm_test, precompile_test)

if (result.release)
result.release(&result);

example_host_destroy_context(context);
}
}

0 comments on commit fd1eb3f

Please sign in to comment.