Skip to content

Foundry test Underflow/Overflow error if using dscE.getCollateralBalanceOfUser(msg.sender, address(collateral)); #3038

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

You must be logged in to vote

Hello @yawarasuuna, one tip is put use console.log inside the function that is reverting and see what are the values that are dividing each other and like that you will gain more insight into what is running in the process and what might be causing the revert.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by yawarasuuna
Comment options

You must be logged in to vote
1 reply
@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
3 participants