Skip to content

Lesson 12 testMustImproveHealthFactorOnLiquidation Revert Error #1934

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

You must be logged in to vote

Well, I figure out the issue. The MockMoreDebtDSC.sol contract was the issue. I just copy pasted my DecentralizedStableCoin.sol contract to the MockMoreDebtDSC contract and updated the constructor to not be empty and to instead have the mockAggregator = _mockAggregator line. What I didn't do was add MockV3Aggregator(mockAggregator).updateAnswer(0) to the burn function which caused the price to be incorrect in my test. Now looking back on it it was a stupid mistake on my end since obviously just adding the mockAggregator = _mockAggregator part to the constructor won't do anything because I didn't actually use it anywhere. Thanks for trying to help anyway even though what I supplied would h…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@EngrPips
Comment options

@LanceAddison
Comment options

@EngrPips
Comment options

@LanceAddison
Comment options

Answer selected by LanceAddison
@EngrPips
Comment options

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