I was trying to use IERC20 from OZ, but didn’t work.
As you may know, USDT not follow the ERC-20 standard.
So, I was wondering if there is a way to implement SafeERC20 library in the test environment in order to use safeApprove.
Thank you
I was trying to use IERC20 from OZ, but didn’t work.
As you may know, USDT not follow the ERC-20 standard.
So, I was wondering if there is a way to implement SafeERC20 library in the test environment in order to use safeApprove.
Thank you
Hi rafius! Welcome to Open Zeppelin.
If I was in your shoes - for testing - I would deploy my own version of USDT and use it. But this doesn’t make sense because how would that carry on into production where you have to use the real USDT.
https://docs.openzeppelin.com/contracts/2.x/api/token/erc20#SafeERC20
You might want to try to use SafeERC20 just to see if it’s possible with it.
If you can, post your code and show us how you are using the SafeTransfer function.