Chapter 9: AssertionError for staging test. #749
Unanswered
sanjayojha
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I wouldn't let some of the staging stuff bog you down... but looking at it I can't really tell what's wrong without digging into it... I think I'd just skip it for now. I think you basically got it, and your unit tests are passing right? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some how I fix the chainlink keeper/vrf error
But now I am getting Assertion error when testing staging test on
rinkeby
network.error
This is due to staring balance and ending balance is not same.
^ this is failing.
I am also noticing the below error when
Perform Upkeep
is running on rinkeby etherscan 0x39f75b9beb0a209f8d4b383395e762757b8e747d4cb5e0e58866f0e38bbe7f2bFail with Custom Error 'Raffle__UpkeepNotNeeded (currentBalance=10000000000000000, numPlayers=1, raffleState=1)'
This means
performUpkeep
method in myRaffle.sol
file is reverting withRaffle_UpkeepNotNeeded
error.Look like below
checkUpkeep
is returning false.But the events are getting fired in my stage test and assertion is running.
Contract address on rinkeby:
0x95f281bf79c0470526c10fb4f75c125b5bfe017d
@PatrickAlphaC
Not sure why assertion is failing and why I am getting reverted error on
Perfrom Upkeep
methodBelow is my
Raffle.Staging.test.ts
fileBeta Was this translation helpful? Give feedback.
All reactions