Skip to content

Commit

Permalink
Set Opcode underlaying storage to uint8_t (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast authored Dec 13, 2022
1 parent b6d103b commit b14fad9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/evmone/instructions_opcodes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

#pragma once

/// The list of EVM opcodes from every EVM revision.
///
/// TODO: Change to `enum class Opcode: uint8_t`.
namespace evmone
{
enum Opcode

/// The list of EVM opcodes from every EVM revision.
///
/// This is not enum class because we want implicit conversion to integers,
/// e.g. for usage as an array index.
enum Opcode : uint8_t
{
OP_STOP = 0x00,
OP_ADD = 0x01,
Expand Down

0 comments on commit b14fad9

Please sign in to comment.