diff --git a/src/libraries/SafeERC20Namer.sol b/src/libraries/SafeERC20Namer.sol index 04bd63a1..47764d2c 100644 --- a/src/libraries/SafeERC20Namer.sol +++ b/src/libraries/SafeERC20Namer.sol @@ -38,7 +38,7 @@ library SafeERC20Namer { function callAndParseStringReturn(address token, bytes4 selector) private view returns (string memory) { (bool success, bytes memory data) = token.staticcall(abi.encodeWithSelector(selector)); // if not implemented, or returns empty data, return empty string - if (!success || data.length == 0) { + if (!success) { return ""; } // bytes32 data always has length 32