-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
enhancementNew feature or improvement.New feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.v6Issues regarding v6Issues regarding v6
Description
Ethers Version
6.9.0
Search Terms
No response
Describe the Problem
Seems like v6 regression of calling contract when overrides return is used - see abi. If I remove override keyword before returns then it works.
Maybe related to #4412 regression.
Code Snippet
const contract = new ethers.Contract(feeContract, abi, provider);
await contract.getFees() // errorContract ABI
const SwapObjStruct = `(uint256 amount, uint256 eqFee, uint256 eqReward, uint256 lpFee, uint256 protocolFee, uint256 lkbRemove)`;
const abi = [
`function getFees(uint256 _srcPoolId, uint256 _dstPoolId, uint16 _dstChainId, address, uint256 _amountSD ) external view override returns (${SwapObjStruct} memory s)`
];Errors
EE Error: unexpected tokens: <TokenString ID:override KEYWORD:returns OPEN_PAREN:( OPEN_PAREN:( TYPE:uint256 ID:amount COMMA:, TYPE:uint256 ID:eqFee COMMA:, TYPE:uint256 ID:eqReward COMMA:, TYPE:uint256 ID:lpFee COMMA:, TYPE:uint256 ID:protocolFee COMMA:, TYPE:uint256 ID:lkbRemove CLOSE_PAREN:) KEYWORD:memory ID:s CLOSE_PAREN:)>Environment
No response
Environment (Other)
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvement.New feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.v6Issues regarding v6Issues regarding v6