diff --git a/packages/bridge-ui/src/components/ERC20Faucet.svelte b/packages/bridge-ui/src/components/ERC20Faucet.svelte index a8f260d3332..0c343d37939 100644 --- a/packages/bridge-ui/src/components/ERC20Faucet.svelte +++ b/packages/bridge-ui/src/components/ERC20Faucet.svelte @@ -8,7 +8,7 @@ import { Funnel } from "svelte-heros-v2"; import MintableERC20 from "../constants/abi/MintableERC20"; import { fromChain } from "../store/chain"; - import { switchNetwork } from "@wagmi/core"; + import { fetchSigner, switchNetwork } from "@wagmi/core"; import { CHAIN_MAINNET } from "../domain/chain"; import Tooltip from "./Tooltip.svelte"; import TooltipModal from "./modals/TooltipModal.svelte"; @@ -24,6 +24,9 @@ await switchNetwork({ chainId: CHAIN_MAINNET.id, }); + const wagmiSigner = await fetchSigner(); + + signer.set(wagmiSigner); } const contract = new ethers.Contract( HORSE.addresses[0].address,