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

how we can do when compile meet Unknown Opcode? #186

Open
Mojicode opened this issue May 22, 2019 · 1 comment
Open

how we can do when compile meet Unknown Opcode? #186

Mojicode opened this issue May 22, 2019 · 1 comment

Comments

@Mojicode
Copy link

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?

@chfast
Copy link
Member

chfast commented Aug 5, 2019

It terminates compilation because the code after "invalid instruction" within a basic block is unreachable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants