Skip to content

TypeError: abi.map is not a function #2306

Answered by yuetloo
Th0rgal asked this question in Q&A
Discussion options

You must be logged in to vote

Your input for the abi and contract address for new Contract() is reversed. It should be new Contract(contractAddress, abi, signerOrProvider)

https://docs.ethers.io/v5/api/contract/contract/#Contract--creating

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Th0rgal
Comment options

@ricmoo
Comment options

@Tulle121
Comment options

Answer selected by Th0rgal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants