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

fix: support contract JSON ABI with callpaths #1354

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

deekerno
Copy link
Contributor

@deekerno deekerno commented Sep 15, 2023

Closes #1320.

Description

Adds support for JSON ABIs that have callpaths in the type field.

Testing steps

The fuel-indexer-test contract ABI has been re-generated with forc build --json-abi-with-callpaths and CI should pass.

Manual testing

On develop:

  • Go into any of the example contracts and run forc build to get a regular JSON ABI. Attempt to build the corresponding indexer for that contract. It should succeed. 🟢
  • Run forc build --json-abi-with-callpaths to generate a JSON ABI with callpaths included. Attempt to build the corresponding indexer for that contract. It should fail. 🔴

On this branch:

  • Go into any of the example contracts and run forc build to get a regular JSON ABI. Attempt to build the corresponding indexer for that contract. It should succeed. 🟢
  • Run forc build --json-abi-with-callpaths to generate a JSON ABI with callpaths included. Attempt to build the corresponding indexer for that contract. It should also succeed. 🟢

@deekerno deekerno added bug Something isn't working P: Medium labels Sep 15, 2023
@deekerno deekerno self-assigned this Sep 15, 2023
@deekerno deekerno marked this pull request as ready for review September 15, 2023 16:53
@deekerno deekerno force-pushed the deekerno/support-abi-with-callpath branch from e785cd3 to 3b5026d Compare September 15, 2023 19:46
Copy link
Contributor

@ra0x3 ra0x3 left a comment

Choose a reason for hiding this comment

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

Will defer to @lostman

@deekerno deekerno merged commit 46dea91 into develop Sep 19, 2023
6 checks passed
@deekerno deekerno deleted the deekerno/support-abi-with-callpath branch September 19, 2023 14:33
@ra0x3 ra0x3 mentioned this pull request Oct 10, 2023
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P: Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support JSON ABI with callpaths
3 participants