@verified-network/verified-sdk 2.2.6 → 2.2.8

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.
@@ -408,6 +408,7 @@ class VerifiedContract {
408
408
  var _a, _b, _c;
409
409
  let res = {};
410
410
  let txHash = "";
411
+ let recp;
411
412
  try {
412
413
  const meeClient = await (0, abstractjs_1.createMeeClient)({
413
414
  account: nexusAccount,
@@ -420,6 +421,7 @@ class VerifiedContract {
420
421
  calls: [tx],
421
422
  },
422
423
  });
424
+ const nowInSec = Math.floor(Date.now() / 1000);
423
425
  // Execute the transaction using passed paymentToken
424
426
  const { hash } = await meeClient.execute({
425
427
  feeToken: {
@@ -427,7 +429,7 @@ class VerifiedContract {
427
429
  address: paymentToken,
428
430
  },
429
431
  instructions: [transactionInstruction],
430
- upperBoundTimestamp: Date.now() + 3600, //1hour ???
432
+ upperBoundTimestamp: nowInSec + 299, //highest is 5 minutes???
431
433
  });
432
434
  txHash = hash;
433
435
  console.log(`MEE transaction hash: ${hash}`);
@@ -466,7 +468,7 @@ class VerifiedContract {
466
468
  }
467
469
  }
468
470
  catch (err) {
469
- console.error("MEE client transaction failed with error: ", (err === null || err === void 0 ? void 0 : err.message) || err);
471
+ console.error("MEE client transaction failed with error: ", err === null || err === void 0 ? void 0 : err.message);
470
472
  res.status = STATUS.ERROR;
471
473
  res.response = {
472
474
  hash: txHash,
@@ -560,7 +562,6 @@ class VerifiedContract {
560
562
  }
561
563
  async getQuote(paymentTokenAddress, functionName, args, rpc, _apiKey) {
562
564
  var _a, _b, _c, _d;
563
- console.log(paymentTokenAddress, functionName, args, rpc, _apiKey);
564
565
  const chainId = await this.signer.getChainId();
565
566
  if (this.supportsGasless(chainId)) {
566
567
  const _signer = this.signer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",