ethers.js icon indicating copy to clipboard operation
ethers.js copied to clipboard

Invalid fragment object

Open iamsahu opened this issue 2 years ago • 2 comments

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 avatar Jun 10 '22 06:06 iamsahu

Can you please provide a concise code example?

ricmoo avatar Jun 17 '22 06:06 ricmoo

Support for custom errors was provided in 5.1.4 (see https://github.com/ethers-io/ethers.js/issues/1493). Upgrading to the latest ethers should fix the issue.

zemse avatar Jun 26 '22 10:06 zemse