PairController.isERC20Approved(...)
function does not accept the 4th argument?
#4653
Closed
AlirezaEthDev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am compile ts to js but this error thowed:
That says
PairController.isERC20Approved(...)
function expected 4 args but got 3 whileTradesControllers.ts
assigns 4 args to the function in line 91:return await PairController.isERC20Approved(payload.chainId, payload.address, token, payload.destinationAddress)
While
payload.destinationAddress
assigned to the function but compiler says 3 args got!!!Why? and how should I solve it? what is the problem?
Beta Was this translation helpful? Give feedback.
All reactions