From 8614f3105b2f34629c5e4c64ad8de1bf29801ce1 Mon Sep 17 00:00:00 2001 From: 0x0v4 <20mitchellthomas02@gmail.com> Date: Sun, 1 Mar 2026 06:00:34 +0100 Subject: [PATCH] Fix missing `privateKeyToAccount` import in Fee Sponsorship examples Adds missing `import privateKeyToAccount from viem/accounts` in both Viem and Wagmi Fee Sponsorship examples. `privateKeyToAccount` was used in the snippets but not imported, causing compilation errors. --- src/snippets/tempo-tx-properties.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snippets/tempo-tx-properties.mdx b/src/snippets/tempo-tx-properties.mdx index a03dac5..a85fb56 100644 --- a/src/snippets/tempo-tx-properties.mdx +++ b/src/snippets/tempo-tx-properties.mdx @@ -112,6 +112,7 @@ over the transaction with a special "fee payer envelope" to commit to paying fee ```tsx twoslash [example.ts] // @noErrors import { client } from './viem.config' + import { privateKeyToAccount } from 'viem/accounts' const feePayer = privateKeyToAccount('0x...') @@ -137,6 +138,7 @@ over the transaction with a special "fee payer envelope" to commit to paying fee ```tsx twoslash [example.ts] // @noErrors import { useSendTransactionSync } from 'wagmi' + import { privateKeyToAccount } from 'viem/accounts' export const feePayer = privateKeyToAccount('0x...')