From 44f3bafbfc07b3623993a5f0f8f508c54de4a396 Mon Sep 17 00:00:00 2001 From: skyc1e Date: Tue, 7 Apr 2026 01:00:48 +0200 Subject: [PATCH] docs: align Gateway references with wagmi v3 useConnection hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - evm-to-evm.md: replace deprecated useAccount with useConnection, matching the other three Gateway EVM reference files - solana-to-evm.md: fix broken line wrap in console.warn message ("Solana t\nransactions" → "Solana transactions") --- .../circle/skills/use-gateway/references/evm-to-evm.md | 4 ++-- .../circle/skills/use-gateway/references/solana-to-evm.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/circle/skills/use-gateway/references/evm-to-evm.md b/plugins/circle/skills/use-gateway/references/evm-to-evm.md index 7edfa7ea..19323c09 100644 --- a/plugins/circle/skills/use-gateway/references/evm-to-evm.md +++ b/plugins/circle/skills/use-gateway/references/evm-to-evm.md @@ -10,7 +10,7 @@ Browser-wallet EVM -> EVM transfer flow: import { useState } from "react"; import { maxUint64, parseUnits, pad, type Hex, zeroAddress } from "viem"; import { - useAccount, + useConnection, useChainId, useSignTypedData, useSwitchChain, @@ -100,7 +100,7 @@ function evmAddressToBytes32(address: Hex): Hex { * 4) Call gatewayMint on destination chain */ export default function TransferGatewayBalanceEvmEvm() { - const { address: evmAddress } = useAccount(); + const { address: evmAddress } = useConnection(); const chainId = useChainId(); const { mutateAsync: signTypedData } = useSignTypedData(); const { switchChainAsync } = useSwitchChain(); diff --git a/plugins/circle/skills/use-gateway/references/solana-to-evm.md b/plugins/circle/skills/use-gateway/references/solana-to-evm.md index 3b01036e..740f823e 100644 --- a/plugins/circle/skills/use-gateway/references/solana-to-evm.md +++ b/plugins/circle/skills/use-gateway/references/solana-to-evm.md @@ -213,10 +213,10 @@ async function signSolanaBurnIntentWithWallet( .map((b) => b.toString(16).padStart(2, "0")) .join("")}`) as Hex; } catch (error) { - console.warn(` - This wallet does not support signing transactions that aren't strictly Solana t - ransactions. Try another wallet such as Solflare.` - , error); + console.warn( + "This wallet does not support signing transactions that aren't strictly Solana transactions. Try another wallet such as Solflare.", + error, + ); throw error; } }