Skip to content

Commit

Permalink
Remove giraffe
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 2, 2019
1 parent 1e93baa commit f7fa78f
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions test/vmtester/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,29 +177,13 @@ TEST_F(evmc_vm_test, precompile_test)
// Iterate every address (as per EIP-1352)
for (size_t i = 0; i < 0xffff; i++)
{
evmc_address destination{{0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
static_cast<uint8_t>(i >> 8),
static_cast<uint8_t>(i & 0xff)}};
auto destination = evmc_address{};
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_CREATE, 0, 0, 65536, destination, evmc_address{}, NULL, 0, evmc_uint256be{},
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);
Expand Down

0 comments on commit f7fa78f

Please sign in to comment.