Skip to content

Commit

Permalink
baseline: Implement SELFDESTRUCT
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 19, 2020
1 parent ebbeeac commit 3dc2b12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/evmone/baseline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,13 @@ evmc_result baseline_execute(evmc_vm* /*vm*/, const evmc_host_interface* host,
case OP_INVALID:
state->status = EVMC_INVALID_INSTRUCTION;
goto exit;
case OP_SELFDESTRUCT:
state->status = selfdestruct(*state);
goto exit;
default:
// TODO: Should not happen.
state->status = EVMC_INTERNAL_ERROR;
goto exit;
}

++pc;
Expand Down

0 comments on commit 3dc2b12

Please sign in to comment.