@@ -63,7 +63,7 @@ except WCClientInvalidOption as exc:
6363# Wait for the sessionRequest info
6464# Can throw WCClientException "sessionRequest timeout"
6565req_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.
216216Must be called right after a WCClient creation.
217217Returns : (message RPCid, chainIDsList, peerMeta data object).
218218Or 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 ) `
222223Send 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 ) `
0 commit comments