From fa2ca24da39cab7961169a89076da6047c5d201c Mon Sep 17 00:00:00 2001 From: Command M Date: Fri, 16 Jun 2023 18:55:43 +0800 Subject: [PATCH] fix href matching prefix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 67227cf..eb83ac1 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ def getLabel(label, label_type="account", input_type='single'): addrIndex = len(baseUrl + '/address/') for elem in elems: href = elem.get_attribute("href") - if (href.startswith('baseUrl/address/')): + if (href.startswith(baseUrl + '/address/')): addressList.append(href[addrIndex:]) # Quickfix: Optimism uses etherscan subcat style but differing address format