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

Invalid fragment object #3066

Open
iamsahu opened this issue Jun 10, 2022 · 2 comments
Open

Invalid fragment object #3066

iamsahu opened this issue Jun 10, 2022 · 2 comments
Assignees
Labels
discussion Questions, feedback and general information.

Comments

@iamsahu
Copy link

iamsahu commented Jun 10, 2022

Ethers Version

5.0.32

Search Terms

No response

Describe the Problem

Failed to parse ABI for contract: "Pool". (Its method data will not be collected).
NB: Some Solidity 0.6.x syntax is not supported by Ethers.js V5 AbiCoder yet.
Please report the error below to github.com/ethers-io/ethers.js

Error: invalid fragment object (argument="value", value={"inputs":[],"name":"AfterMaturity","type":"error"}, code=INVALID_ARGUMENT, version=abi/5.0.13)

Here is the CI output of the issue: https://github.com/yieldprotocol/strategy-v2/runs/6808866883?check_suite_focus=true

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

Hardhat

Environment (Other)

No response

@iamsahu iamsahu added the investigate Under investigation and may be a bug. label Jun 10, 2022
@iamsahu iamsahu changed the title Bug Report Title Invalid fragment object Jun 10, 2022
@ricmoo
Copy link
Member

ricmoo commented Jun 17, 2022

Can you please provide a concise code example?

@ricmoo ricmoo added discussion Questions, feedback and general information. and removed investigate Under investigation and may be a bug. labels Jun 17, 2022
@zemse
Copy link
Collaborator

zemse commented Jun 26, 2022

Support for custom errors was provided in 5.1.4 (see #1493). Upgrading to the latest ethers should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Questions, feedback and general information.
Projects
None yet
Development

No branches or pull requests

4 participants
@ricmoo @zemse @iamsahu and others