Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Opcode underlaying storage to uint8_t #537

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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