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

Update abiParser.ts to work with foundry / forge output #618

Closed
wants to merge 1 commit into from

Conversation

joeandrews
Copy link

Forge / Foundry structures ABI's as below. This change makes the ABI parser compatible with the output from forge.

{
  "abi": [],
  "bytecode": {
    "object": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205bf70e5aa6eb164145ba1ab154b06c77bba3192b4507a03c711393334ab8aafb64736f6c634300080a0033",
    "sourceMap": "153:195:3:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;153:195:3;;;;;;;;;;;;;;;;;",
    "linkReferences": {}
  },
  "deployed_bytecode": {
    "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205bf70e5aa6eb164145ba1ab154b06c77bba3192b4507a03c711393334ab8aafb64736f6c634300080a0033",
    "sourceMap": "153:195:3:-:0;;;;;;;;",
    "linkReferences": {}
  }
}

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2022

⚠️ No Changeset found

Latest commit: f58243c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@krzkaczor
Copy link
Member

@joeandrews thanks for this! Can you add a test for this? There should be already a plenty of similar tests there.

@alvrs
Copy link
Contributor

alvrs commented Feb 21, 2022

Added tests to this change here: #624

@krzkaczor krzkaczor closed this Mar 6, 2022
@krzkaczor
Copy link
Member

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.

3 participants