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

disassembly error #191

Open
ouerum opened this issue Dec 30, 2018 · 2 comments
Open

disassembly error #191

ouerum opened this issue Dec 30, 2018 · 2 comments
Labels

Comments

@ouerum
Copy link

ouerum commented Dec 30, 2018

I used radare-extras to debug the evm bytecode. However, when the contract A enter another contract B through delegatecall opcode, the Disassembly panel display A bytecode but not B bytecdoe. But the Stack panel work well. What's problem?
thanks!

@radare
Copy link
Collaborator

radare commented Dec 30, 2018 via email

@ouerum
Copy link
Author

ouerum commented Dec 30, 2018

I deploy two contract into ganache, and call the second contract's test().
pragma solidity ^0.4.0; contract Example1{ uint a = 0; function setA() public { a = 222; } }
pragma solidity ^0.4.0; contract Example2{ function test() public { address addr = 0xc85f548461bec5fdbafadac51aad3f9d7521bfa9; //the address of first contract(Example1) addr.delegatecall(0x1fc376f7);//call setA in Example1 } }
Then I use radare-extras to debug this tx. It work well when debug in Example, but got problem after
enter Example through delegatecall.

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

No branches or pull requests

3 participants