Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(contract, abigen): support artifact format in proc macro #480

Merged
merged 2 commits into from
Oct 2, 2021

Conversation

shekhirin
Copy link
Contributor

Motivation

Resolve #476 once again, since #478 didn't solve the issue with abigen! proc macro.

Solution

Make a best-effort coercion of an ABI or an artifact JSON into an artifact JSON (idea from https://github.com/gnosis/ethcontract-rs/blob/5db6ad486256abac7509193649b7bc0f5ed40f96/ethcontract-generate/src/source.rs#L246).

@gakonst
Copy link
Owner

gakonst commented Sep 30, 2021

@shekhirin this LGTM - there seems to be some ABI parsing failure inside the WASM tests, mind taking a look?

@shekhirin
Copy link
Contributor Author

@gakonst oh I see. Will look into it, yep.

@shekhirin shekhirin force-pushed the fix-abigen-proc-macro branch from 3978fbd to fd58584 Compare October 2, 2021 15:35
@shekhirin
Copy link
Contributor Author

@gakonst done

@gakonst gakonst merged commit 1f17788 into gakonst:master Oct 2, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* If cargo not installed, install to /usr/local/bin

* Add comment about rm'ing old installations

* forgeup -> foundryup and use a new .foundry dir structure

* check PATH correctly

* fix typos in README
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

abigen! fails with confusing error on solidity output
2 participants