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

✨(gentest): use evm_bytes to generate python opcode in tests #862

Open
Tracked by #866
danceratopz opened this issue Oct 2, 2024 · 0 comments
Open
Tracked by #866

✨(gentest): use evm_bytes to generate python opcode in tests #862

danceratopz opened this issue Oct 2, 2024 · 0 comments
Labels
scope:gentest Scope: gentest CLI type:feat type: Feature

Comments

@danceratopz
Copy link
Member

Currently, evm code is written as a hex string in the generated test. This could be made more readable by converting the bytecode to the Opcodes mini-lang using evm_bytes (as used here):

Op.PUSH1(4) + Op.JUMP + Op.PUSH0 + Op.JUMPDEST + Op.SSTORE(Op.PUSH0, 1) + Op.STOP,

The first todo would be probably to check whether gentest correctly generates tests that have a smart contract interaction 🙂

Note: evm_bytes_to_python was renamed to evm_bytes in #844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:gentest Scope: gentest CLI type:feat type: Feature
Projects
None yet
Development

No branches or pull requests

1 participant