Skip to content

Commit c1101c1

Browse files
authored
Merge pull request #19 from algolog/fix-nonint-chainds
Fix for non-integer chainID
2 parents bac6200 + 8e58c5d commit c1101c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pywalletconnect/client_v2irn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,14 @@ def open_session(self):
293293
# Namespace usage case 3 (and 2)
294294
nps = "requiredNamespaces"
295295
chain_ids += [
296-
int(c.split(":")[-1])
296+
c.split(":")[-1]
297297
for c in read_data[2][nps][self.wallet_namespace]["chains"]
298298
]
299299
if opt_namespace is not None:
300300
# Namespace usage case 1 (and 2)
301301
nps = "optionalNamespaces"
302302
chain_ids += [
303-
int(c.split(":")[-1])
303+
c.split(":")[-1]
304304
for c in read_data[2][nps][self.wallet_namespace]["chains"]
305305
]
306306
# Use methods and events from optional is both present

0 commit comments

Comments
 (0)