Skip to content

Advanced Foundry, Section 3 DeFi-StableCoin, Lesson 19 testRevertsIfMintedDscBreaksHealthFactor fails with the wrong error #2750

Answered by EngrPips
BowtiedHarpyEagle asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. If your user is address(1), then why did you mint the token to a different address and not address(1) in your setup as shown in the stack trace below

[24728] ERC20Mock::mint(user: [0x6CA6d1e2D5347Bfab1d91e883F1915560e09129D], 10000000000000000000 [1e19])
       ├─ emit Transfer(from: 0x0000000000000000000000000000000000000000, to: user: [0x6CA6d1e2D5347Bfab1d91e883F1915560e09129D], value: 10000000000000000000 [1e19])
       └─  [Stop] 

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@BowtiedHarpyEagle
Comment options

@EngrPips
Comment options

@BowtiedHarpyEagle
Comment options

@EngrPips
Comment options

Answer selected by BowtiedHarpyEagle
@BowtiedHarpyEagle
Comment options

@EngrPips
Comment options

@BowtiedHarpyEagle
Comment options

@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