Skip to content

Conversation

@DaniPopes
Copy link
Member

Motivation

Blocked by: gakonst/ethers-rs#1747

Solution

@mattsse mattsse marked this pull request as ready for review September 29, 2022 15:41
@mattsse mattsse added L-ignore Log: ignore PR in changelog T-debt Type: code debt labels Sep 29, 2022
@mattsse mattsse merged commit 28021c1 into foundry-rs:master Sep 29, 2022
for item in &contract_source.items {
abis.push(serde_json::from_str(&item.abi)?);
}
// TODO: Abi to RawAbi ?
Copy link
Member Author

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

Copy link
Member

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

Copy link
Member

@mattsse mattsse Sep 29, 2022

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

iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
* 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>
@DaniPopes DaniPopes deleted the refactor/etherscan2 branch January 30, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L-ignore Log: ignore PR in changelog T-debt Type: code debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants