Skip to content

Commit

Permalink
pass chainId to publicClient
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Nov 8, 2024
1 parent 3d671f4 commit a16be46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/checkout/src/views/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Swap = () => {
const [isTxsPending, setIsTxsPending] = useState(false)
const [isError, setIsError] = useState(false)
const [selectedCurrency, setSelectedCurrency] = useState<string>()
const publicClient = usePublicClient()
const publicClient = usePublicClient({ chainId })
const { data: walletClient } = useWalletClient()

const buyCurrencyAddress = compareAddress(currencyAddress, zeroAddress) ? NATIVE_TOKEN_ADDRESS_0X : currencyAddress
Expand Down

0 comments on commit a16be46

Please sign in to comment.