Skip to content

LESSON 12: Error: invalid address or ENS name #1997

Discussion options

You must be logged in to vote

@adityabhattad2021 Thank you for sharing this solution, it really helped me fix the test.

However, running the lines below as is returned Error: VoidSigner cannot sign transactions

=================================================================================

Your code

describe("allowances", function() {
        it("It should approve other address to spend token", async function() {
            tokenToSpend = ethers.utils.parseEther("5")
            await token.approve(user1, tokenToSpend)
            const userConnectedContract = await token.connect(user1)
            await userConnectedContract.transferFrom(deployer, user1, tokenToSpend)
            assert.equal(await userConnectedCo…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@DorianDaSilva
Comment options

Comment options

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

@RoboCrypter
Comment options

@adityabhattad2021
Comment options

Comment options

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

@DorianDaSilva
Comment options

@dealeros
Comment options

Answer selected by DorianDaSilva
Comment options

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