py-evm icon indicating copy to clipboard operation
py-evm copied to clipboard

Docs: Add cookbook recipe on how to execute some bytecode?

Open Chr1s-T opened this issue 5 years ago • 1 comments

If I deploy a contract with Solidity, and get its bytecode. Can I execute the bytecode with py-evm?

Chr1s-T avatar Jun 07 '20 12:06 Chr1s-T

Yes, that should be possible. I'm afraid we are lacking a good example in our docs. I will admit that we should add one to our cookbook.

Maybe this test can serve as a good starting point for your further investigations?

https://github.com/ethereum/py-evm/blob/8b26d16270acbf06d988de39cc6671cb527726be/tests/core/opcodes/test_opcodes.py#L1041-L1127

cburgdorf avatar Jun 07 '20 16:06 cburgdorf