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

Error: Could not coalesce error: ... #4576

Open
Boostcounter opened this issue Feb 3, 2024 · 0 comments
Open

Error: Could not coalesce error: ... #4576

Boostcounter opened this issue Feb 3, 2024 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@Boostcounter
Copy link

Ethers Version

6.10.0

Search Terms

No response

Describe the Problem

Hey, so I'm simply trying to get the balance of the account using the following script:

Code Snippet

console.log(window.ethereum)

    const contract_address = "";

    const abi = [];

    async function start(){
    const provider = new ethers.BrowserProvider(window.ethereum)
    const accounts = await provider.send("eth_requestAccounts", []);

    const signer = await provider.getSigner()

    const daiContract = new ethers.Contract(contract_address, abi, provider)

    console.log(daiContract.balanceOf(signer))
    }
    start()

Contract ABI

No response

Errors

Please look at this image:

https://cdn.discordapp.com/attachments/717009571536699571/1199689901860466750/image.png?ex=65ccafc9&is=65ba3ac9&hm=49e1b79c2fb57e6c0ea1efa0f9a9156df46571dc78512aa2ec74056c3cdc6bf4&

Environment

No response

Environment (Other)

No response

@Boostcounter Boostcounter added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Feb 3, 2024
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