Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target.getAddress is not a function #4053

Open
SyedImam1998 opened this issue May 16, 2023 · 0 comments
Open

target.getAddress is not a function #4053

SyedImam1998 opened this issue May 16, 2023 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@SyedImam1998
Copy link

Ethers Version

^6.3.0

Search Terms

No response

Describe the Problem

I am getting this error

TypeError: target.getAddress is not a function
    at new _BaseContract (contract.ts:727:34)
    at new Contract (contract.ts:986:7)
    at connectWallet (App.jsx:186:32)

Code at line number 186 is:

const contractInstance = new Contract(
        contractAddress,
        contractAbi,
        signer
      );

Can some one explain why this is happening? before i didn't face this issue

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

No response

Environment (Other)

No response

@SyedImam1998 SyedImam1998 added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants