ethers.js
ethers.js copied to clipboard
Invalid fragment object
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
Can you please provide a concise code example?
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.