Closed jptusername closed 5 months ago
SafeERC20 is an internal library of YOUR contract, in the end, when you mock the ERC20 it'll be called with just transfer
, just make sure to return a true
.
SafeERC20 is an internal library of YOUR contract, in the end, when you mock the ERC20 it'll be called with just
transfer
, just make sure to return atrue
.
Ah okay, makes sense, and I get it. Thank you very much!
When I want to test my contract using smock framework:
I can test it as:
Shouldn't mock just behave like fakes in this case?