Skip to content

Void signer can not sign a transaction #5627

Closed Answered by darshilmistry
darshilmistry asked this question in Q&A
Discussion options

You must be logged in to vote

I am extremally sorry! I made a small mistake. I used the ethers.getSigners() function and then directly used the result of signers[1] in my getBalance() function which resulted in the previous error.

I saw the error thoroughly and thought that adding a .address after tester solves the problem.
so the new test looks like this and yields required result.

let TokenD, deployer
    beforeEach(async () => {
        const signers = await ethers.getSigners
        deployer = signers[0]
        await deployments.fixture(["all"])
        TokenD = await ethers.getContract("ERC721", deployer)
        
    })

    describe("The Mint function", () => {

        let tester, testersToken, uri
        b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@darshilmistry
Comment options

@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by darshilmistry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants