@use-glyph/sdk-react 2.0.6-rc.2 → 2.0.7

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.js CHANGED
@@ -33478,9 +33478,10 @@ const sR = (e) => {
33478
33478
  });
33479
33479
  },
33480
33480
  handleConfirmTransactionStep: async (o, i, l, u) => {
33481
- console.log(e, i);
33482
33481
  const p = nR(e, { chainId: i }), d = p ?? aR(i);
33483
- console.log(p, d);
33482
+ if (!d)
33483
+ throw console.error("Public client couldn't be initialized"), new Error("Couldn't fetch transaction status");
33484
+ console.log(!!p, !!d);
33484
33485
  const h = await d.waitForTransactionReceipt({
33485
33486
  hash: o,
33486
33487
  onReplaced: (f) => {
@@ -33489,7 +33490,7 @@ const sR = (e) => {
33489
33490
  l(f.transaction.hash);
33490
33491
  }
33491
33492
  });
33492
- return console.log(h), h;
33493
+ return console.log(!!h.transactionHash), h;
33493
33494
  },
33494
33495
  switchChain: async (o) => {
33495
33496
  console.log("switching chain to:", o, "for relay"), await s({ chainId: o });