diff --git a/pywalletconnect/client.py b/pywalletconnect/client.py index 8a056aa..927f459 100644 --- a/pywalletconnect/client.py +++ b/pywalletconnect/client.py @@ -453,6 +453,12 @@ def get_data(self): msg_sub[2]["data"]["message"] ) logger.debug("Request message decrypted : %s", request_received) + + # Send back ack + payload_bin = json_rpc_pack_response(msg_sub[0], True) + logger.debug("Sending result reply.") + self.websock.write_message(payload_bin) + return request_received return None @@ -581,7 +587,7 @@ def open_session(self): pairing_rpc_id = iparams["topic"] peer_meta = iparams["proposer"]["metadata"] chain_id = iparams["permissions"]["blockchain"]["chains"] - break + break cyclew += 1 if cyclew == CYCLES_TIMEOUT: self.close()