@t2000/sdk 0.18.23 → 0.18.24

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.
package/dist/index.cjs CHANGED
@@ -56162,14 +56162,19 @@ async function trySponsored(client, keypair, tx) {
56162
56162
  };
56163
56163
  }
56164
56164
  async function waitForIndexer(client, digest) {
56165
+ const start = Date.now();
56165
56166
  for (let i = 0; i < 3; i++) {
56166
56167
  try {
56167
56168
  await client.getTransactionBlock({ digest, options: { showObjectChanges: true } });
56168
- return;
56169
+ break;
56169
56170
  } catch {
56170
- await new Promise((r) => setTimeout(r, 1e3));
56171
+ await new Promise((r) => setTimeout(r, 500));
56171
56172
  }
56172
56173
  }
56174
+ const elapsed = Date.now() - start;
56175
+ if (elapsed < 2e3) {
56176
+ await new Promise((r) => setTimeout(r, 2e3 - elapsed));
56177
+ }
56173
56178
  }
56174
56179
  async function executeWithGas(client, keypair, buildTx, options) {
56175
56180
  if (options?.enforcer && options?.metadata) {