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

Some contracts return [0x00000001, 0x00000002] selectors #83

Closed
0x366 opened this issue Jan 25, 2024 · 1 comment
Closed

Some contracts return [0x00000001, 0x00000002] selectors #83

0x366 opened this issue Jan 25, 2024 · 1 comment

Comments

@0x366
Copy link

0x366 commented Jan 25, 2024

Ie this one 0xD5D1FB5835651C80Ead387A75bD04611e8B3aD52

const { whatsabi } = require("@shazow/whatsabi");

const selectors = whatsabi.selectorsFromBytecode("0x....");
console.log(JSON.stringify(selectors))

Prints
["0x00000001","0x00000002"]

@0x366
Copy link
Author

0x366 commented Jan 25, 2024

my bad, all works, need to put deployed bytecode instead of creation bytecode

@0x366 0x366 closed this as completed Jan 25, 2024
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

1 participant