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

wrong log parameters #65

Open
pUawXk1Hw46LBrIi opened this issue Aug 2, 2023 · 1 comment
Open

wrong log parameters #65

pUawXk1Hw46LBrIi opened this issue Aug 2, 2023 · 1 comment

Comments

@pUawXk1Hw46LBrIi
Copy link

decompile Wrapped Ether (WETH) contract on main chain.
decompilation = decompile_address('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', None)

It gives
log Transfer( address from=amount, address to=caller, uint256 value=recipient) which should be log Transfer( address from=caller, address to=recipient, uint256 value=amount)

I also found the log reco in the trace is strange too.
('log', ('param', 'amount'), 100389287136786176327247604509743168900146139575972864366142685224231313322991, ('param', 'sender'), ('param', 'recipient'))
I guess it should be:
('log', 100389287136786176327247604509743168900146139575972864366142685224231313322991, ('param', 'amount'), ('param', 'sender'), ('param', 'recipient'))

@ytrezq
Copy link

ytrezq commented Jan 17, 2024

This come from me. You need to edit 4bytes sqlite database so it returns the correct log.

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