Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Test should support ERC20 tokens that do not return bool #361

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

0xsuryansh
Copy link

@0xsuryansh 0xsuryansh commented May 18, 2023

Motivation

I tried running the ERC4626 property test against a vault with USDT as underlying token, I found that when the test is executed with a userWithAsset for this token, the test would fail as USDT token doesn't return boolean when approve and transfer is called

Solution

I have replaced ERC20.approve and ERC20.transfer with _safeApprove and _safeTransfer to solve this issue

cc : @fedealconada

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant