Skip to content

Lesson 7: AssertionError: Expected transaction to be reverted with You need to spend more ETH #747

Answered by mattjaf
LucidJoy asked this question in Q&A
Discussion options

You must be logged in to vote

your error message in your contract might be different then what was expected

In other words:

most likely the error message in your contract isDidn't send enough

while in your test you have revertedWth:

You need to spend more ETH

Replies: 1 comment 3 replies

Comment options

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

@Kizito007
Comment options

@ManuWeb3
Comment options

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