ethereum / ethereum/evmjit

how we can do when compile meet Unknown Opcode?

Open
#186 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
169
Forks
78
PR merge metrics
No merged PRs in 30d

Description

I use the solidity compiler to compile a contract, and there are some "Unknown Opcode" in the bytecode. When I use evmjit to deploy the contract, it will go to the default branch whitch means it is "Invalid instruction - abort", and will stop the compile immediately. Should I remove the default branch and complete the compile? Is it OK?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Solidity compilation and evmjit deployment described in the issue, then inspect the default branch that handles an unknown opcode. Determine whether the opcode is valid for the targeted EVM version and document or test the intended behavior; the issue is done when unknown opcodes have an explicitly verified outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, solidity
Domain
blockchain, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.