Skip to content

Commit

Permalink
[SDK] Fix: Connect to correct chain with guest account (#5426)
Browse files Browse the repository at this point in the history
CNCT-2370

<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds support for the `chain` property in the `connectOptions` object within the `ConnectWalletSocialOptions.tsx` file, enhancing the flexibility of wallet connections based on the provided chain.

### Detailed summary
- Added `chain: props.chain` to the `connectOptions` object.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
gregfromstl committed Nov 15, 2024
1 parent 895b4d1 commit f7a4a46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export const ConnectWalletSocialOptions = (
client: props.client,
ecosystem: ecosystemInfo,
strategy: "guest" as const,
chain: props.chain,

Check warning on line 217 in packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx#L217

Added line #L217 was not covered by tests
};
const connectPromise = (async () => {
const result = await wallet.connect(connectOptions);
Expand Down

0 comments on commit f7a4a46

Please sign in to comment.