Skip to content

Commit 1b93c8b

Browse files
committed
New version
1 parent c1101c1 commit 1b93c8b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# pyWalletConnect changes log
33

4+
## 1.6.2
5+
6+
* Chain ID may be non-integer. Chain ID elements returned by open_session are string (breaking change)
7+
48
## 1.6.0
59

610
* Can handle all namespaces common usage patterns

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ except WCClientInvalidOption as exc:
6363
# Wait for the sessionRequest info
6464
# Can throw WCClientException "sessionRequest timeout"
6565
req_id, chain_ids, request_info = wallet_dapp.open_session()
66-
if account.chainID not in chain_ids:
66+
if str(account.chainID) not in chain_ids:
6767
# Chain id mismatch
6868
wallet_dapp.close()
6969
raise InvalidOption("Chain ID from Dapp is not the same as the wallet.")
@@ -216,12 +216,13 @@ Start a WalletConnect session : wait for the session call request message.
216216
Must be called right after a WCClient creation.
217217
Returns : (message RPCid, chainIDsList, peerMeta data object).
218218
Or throws WalletConnectClientException("sessionRequest timeout")
219-
after 8 seconds and no sessionRequest received.
219+
after 8 seconds and no sessionRequest received.
220+
chainIDsList is a list of string.
220221

221222
`reply_session_request( msg_id, chain_id, account_address )`
222223
Send a session approval message, when user approved the connection session request in the wallet.
223224
*msg_id* is the RPC id of the session approval request.
224-
*chain_id* is the integer ideitifying the blockchain.
225+
*chain_id* is the integer (or its string representation) identifying the blockchain.
225226
*account_address* is a string of the address of the wallet account ("0x...").
226227

227228
`.reject_session_request( req_id )`

pywalletconnect/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""pyWalletConnect version info."""
22

3-
VERSION = "1.6.0"
3+
VERSION = "1.6.2"

0 commit comments

Comments
 (0)