From d0b81fe8bd0c206ce550a4ca1f1dcb30f26cfd86 Mon Sep 17 00:00:00 2001 From: dianakocsis Date: Mon, 23 Sep 2024 18:08:00 -0400 Subject: [PATCH] remove extra check --- src/libraries/SafeERC20Namer.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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