-
Notifications
You must be signed in to change notification settings - Fork 2.3k
refactor: etherscan #3395
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
refactor: etherscan #3395
Conversation
| for item in &contract_source.items { | ||
| abis.push(serde_json::from_str(&item.abi)?); | ||
| } | ||
| // TODO: Abi to RawAbi ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattsse not sure how to do this here, metadata's abi field is an Abi struct when we need a RawAbi, reasons explained in foundry_utils::abi::abi_to_solidity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah sigh, we need to change this back to either string or RawAbi, because Abi is not lossless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also suggesting that we move RawAbi to ethers-core
I'd change the abi field to String and add helper functions that return RawAbi and Abi, I think
* fix: docs * refactor: etherscan * feat: add etherscan recursive source find method * chore(deps): bump ethers * enable feature * chore(clippy): make clippy happy Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Motivation
Blocked by: gakonst/ethers-rs#1747
Solution