We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38dee4a commit 197605eCopy full SHA for 197605e
src/scripts/workflow_helper.py
@@ -1,7 +1,6 @@
1
-import sys
2
import json
3
import os
4
-
+import sys
5
6
LIST_PATH = os.environ["LIST_PATH"]
7
@@ -12,7 +11,7 @@ def handle_add_update_token(data):
12
11
13
for token in token_list["tokens"]:
14
# update
15
- if token["address"].lower() == data["address"].lower():
+ if token["address"].lower() == data["address"].lower() and token["chainId"] == int(data["chainId"]):
16
token["address"] = data["address"].lower()
17
token["symbol"] = data["symbol"]
18
token["name"] = data["name"]
0 commit comments