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

feat: getContract #77

Merged
merged 7 commits into from
Jan 15, 2024
Merged

feat: getContract #77

merged 7 commits into from
Jan 15, 2024

Conversation

SonOfMosiah
Copy link
Contributor

Types for EvmVersion and ContractData (return value for getContract)

Implementation for Etherscan + Sourcify getContract()

Types for EvmVersion and ContractData (return value for getContract)

Implementation for Etherscan + Sourcify getContract()
Copy link
Owner

@shazow shazow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's super thorough, looks great, thank you!

Happy to merge it as-is, or would also be cool if you'd like to add a couple of tests to https://github.com/shazow/whatsabi/blob/main/src/__tests__/loaders.test.ts just to make sure the code is exercised and doesn't get broken by accident.

I'm also happy to do it myself in a later PR if this is all you have time for. :)

src/loaders.ts Outdated Show resolved Hide resolved
@shazow
Copy link
Owner

shazow commented Jan 15, 2024

Also apologies if it's not ready for review yet. 😅

@SonOfMosiah
Copy link
Contributor Author

Created it as a draft so you wouldn't feel obligated to review before tests were up. I'll write a few tests and then we can get this merged.

@shazow
Copy link
Owner

shazow commented Jan 15, 2024

Too hyped! lol

@SonOfMosiah SonOfMosiah marked this pull request as ready for review January 15, 2024 17:52
Copy link
Owner

@shazow shazow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall!

src/loaders.ts Show resolved Hide resolved
src/loaders.ts Outdated Show resolved Hide resolved
@SonOfMosiah
Copy link
Contributor Author

Happy to have you merge. Looks like tests are just failing due to missing keys/providers in the github action.

@shazow shazow merged commit 0e020a2 into shazow:main Jan 15, 2024
0 of 2 checks passed
@shazow
Copy link
Owner

shazow commented Jan 15, 2024

Yea, secrets don't get included in actions from third-party PRs.

@shazow
Copy link
Owner

shazow commented Jan 15, 2024

Thank you for doing this!

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

Successfully merging this pull request may close these issues.

2 participants