@forge-connect/react 1.0.3 → 1.0.5

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
@@ -937,6 +937,7 @@ function WalletAdapterFlow() {
937
937
  setError("");
938
938
  setLoading(true);
939
939
  try {
940
+ wallet.select(w.adapter.name);
940
941
  if (!w.adapter.connected) {
941
942
  await w.adapter.connect();
942
943
  }
@@ -3578,6 +3579,7 @@ function WalletLinkStep({ onBack, onSuccess, onFatalError }) {
3578
3579
  return btoa(String.fromCharCode(...new Uint8Array(signedTx.serialize())));
3579
3580
  };
3580
3581
  }, [_optionalChain([walletConfig, 'optionalAccess', _117 => _117.Transaction])]);
3582
+ const wallet = walletAdapter;
3581
3583
  const handleConnect = async (w) => {
3582
3584
  if (w.readyState !== "Installed") {
3583
3585
  if (mobile) {
@@ -3594,6 +3596,7 @@ function WalletLinkStep({ onBack, onSuccess, onFatalError }) {
3594
3596
  setError("");
3595
3597
  setLoading(true);
3596
3598
  try {
3599
+ wallet.select(w.adapter.name);
3597
3600
  if (!w.adapter.connected) await w.adapter.connect();
3598
3601
  const pk = w.adapter.publicKey;
3599
3602
  if (!pk) throw new Error("Wallet did not provide a public key.");