Skip to content

Lesson 7: stagging test error AssertionError: expected '30000000000000000' to equal '0' #1805

Discussion options

You must be logged in to vote

@ameeetgaikwad add a wait after withdraw, because it is changing the state of the blockchain.

const tx = await fundMe.withdraw();
await tx.wait(1);

Replies: 3 comments 39 replies

Comment options

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

@krakxn
Comment options

@ameeetgaikwad
Comment options

@ameeetgaikwad
Comment options

@krakxn
Comment options

Comment options

You must be logged in to vote
4 replies
@ameeetgaikwad
Comment options

@adityabhattad2021
Comment options

@adityabhattad2021
Comment options

@ameeetgaikwad
Comment options

Comment options

You must be logged in to vote
30 replies
@ameeetgaikwad
Comment options

@ameeetgaikwad
Comment options

@alymurtazamemon
Comment options

@ameeetgaikwad
Comment options

@alymurtazamemon
Comment options

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