Cyfrin / foundry-defi-stablecoin-cu

250 stars 117 forks source link

Update StopOnRevertHandler.t.sol #11

Closed touqeerShah closed 1 year ago

touqeerShah commented 1 year ago

redeemCollateral have problem in getCollateralBalanceOfUser function argument so it was never call that why it never give issue it define as user address then contract collateral address but pass swap of it so that why it never run and revert from if conditions

PatrickAlphaC commented 1 year ago

Did you test this? How would this work if we use the dscEngine and not the engine variable?

touqeerShah commented 1 year ago

yes I test i on my local machine sorry for that I used name as engine in my local code you used it as dscEngine

PatrickAlphaC commented 1 year ago

great I'll close this one and we can talk on the other