@use-glyph/sdk-react 2.0.5 → 2.0.6-rc.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.
package/dist/index.js CHANGED
@@ -33471,15 +33471,22 @@ const nR = (e) => {
33471
33471
  });
33472
33472
  },
33473
33473
  handleConfirmTransactionStep: async (o, i, l, u) => {
33474
+ console.log(e, i);
33474
33475
  const p = rR(e, { chainId: i });
33475
- return Rn(p, "publicClient is required"), await p.waitForTransactionReceipt({
33476
- hash: o,
33477
- onReplaced: (h) => {
33478
- if (h.reason === "cancelled")
33479
- throw u(), Error("Transaction cancelled");
33480
- l(h.transaction.hash);
33481
- }
33482
- });
33476
+ let d = null;
33477
+ try {
33478
+ Rn(p, "publicClient is required"), d = await p.waitForTransactionReceipt({
33479
+ hash: o,
33480
+ onReplaced: (h) => {
33481
+ if (h.reason === "cancelled")
33482
+ throw u(), Error("Transaction cancelled");
33483
+ l(h.transaction.hash);
33484
+ }
33485
+ });
33486
+ } catch {
33487
+ console.log(p);
33488
+ }
33489
+ return console.log(d), d;
33483
33490
  },
33484
33491
  switchChain: async (o) => {
33485
33492
  console.log("switching chain to:", o, "for relay"), await s({ chainId: o });