Skip to content

Commit

Permalink
Merge branch 'master' into 3627-remove-isdev-from-exposed-interface
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 18, 2024
2 parents 1057c38 + 7aedb41 commit e7b795c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![npm version](https://badge.fury.io/js/@0xsequence%2Fkit.svg)](https://badge.fury.io/js/@0xsequence%2Fkit)

Sequence Kit 🧰 is a library enabling developers to easily integrate web3 wallets in their app. It is based on [wagmi](https://wagmi.sh/) and supports all wagmi features.
Easily integrate web3 wallets in your app with Sequence Kit 🧰. Based on [wagmi](https://wagmi.sh/), and supporting all wagmi features.

- Connect via social logins eg: facebook, google, discord, etc...! 🔐🪪
- Connect to popular web3 wallets eg: walletConnect, metamask ! 🦊 ⛓️
Expand Down
2 changes: 2 additions & 0 deletions packages/checkout/src/contexts/AddFundsModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { createGenericContext } from './genericContext'

export interface AddFundsSettings {
walletAddress: string | Hex
fiatAmount?: string
fiatCurrency?: string
defaultFiatAmount?: string
defaultCryptoCurrency?: string
cryptoCurrencyList?: string
networks?: string
onClose?: () => void
}
Expand Down
2 changes: 2 additions & 0 deletions packages/checkout/src/utils/transak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ export const getTransakLink = (addFundsSettings: AddFundsSettings) => {
apiKey: TRANSAK_API_KEY,
referrerDomain: window.location.origin,
walletAddress: addFundsSettings.walletAddress,
fiatAmount: addFundsSettings?.fiatAmount,
fiatCurrency: addFundsSettings?.fiatCurrency,
disableWalletAddressForm: 'true',
defaultFiatAmount: addFundsSettings?.defaultFiatAmount || '50',
defaultCryptoCurrency: addFundsSettings?.defaultCryptoCurrency || 'USDC',
cryptoCurrencyList: addFundsSettings?.cryptoCurrencyList,
networks: addFundsSettings?.networks || defaultNetworks
}

Expand Down
5 changes: 5 additions & 0 deletions packages/checkout/src/views/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export const Swap = () => {
return swapTransactions
}

const walletClientChainId = await walletClient.getChainId()
if (walletClientChainId !== chainId) {
await walletClient.switchChain({ id: chainId })
}

const txHash = await sendTransactions({
connector,
walletClient,
Expand Down

0 comments on commit e7b795c

Please sign in to comment.