@hashgraphonline/hashinal-wc 1.0.92-canary → 1.0.92-canary-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4880,11 +4880,16 @@ class DAppSigner {
|
|
|
4880
4880
|
}
|
|
4881
4881
|
if (this.extensionId)
|
|
4882
4882
|
extensionOpen(this.extensionId);
|
|
4883
|
-
|
|
4883
|
+
const currentDate = Date.now();
|
|
4884
|
+
const dAppRequest = {
|
|
4884
4885
|
topic: this.topic,
|
|
4885
4886
|
request,
|
|
4886
|
-
chainId: ledgerIdToCAIPChainId(this.ledgerId)
|
|
4887
|
-
|
|
4887
|
+
chainId: ledgerIdToCAIPChainId(this.ledgerId),
|
|
4888
|
+
// hardcode expiry to 5 minutes
|
|
4889
|
+
expiry: currentDate + 300
|
|
4890
|
+
};
|
|
4891
|
+
this.logger.debug("Sending request to wallet", dAppRequest);
|
|
4892
|
+
return this.signClient.request(dAppRequest);
|
|
4888
4893
|
}
|
|
4889
4894
|
getAccountId() {
|
|
4890
4895
|
return this.accountId;
|