diff --git a/packages/react/src/useWalletAccountTransactionSendingSigner.ts b/packages/react/src/useWalletAccountTransactionSendingSigner.ts index 15cab84ae287..b45d68c9805d 100644 --- a/packages/react/src/useWalletAccountTransactionSendingSigner.ts +++ b/packages/react/src/useWalletAccountTransactionSendingSigner.ts @@ -25,7 +25,7 @@ export function useWalletAccountTransactionSendingSigner { - const encoderRef = useRef>(); + const encoderRef = useRef | null>(null); const signAndSendTransaction = useSignAndSendTransaction(uiWalletAccount, chain); return useMemo( () => ({ diff --git a/packages/react/src/useWalletAccountTransactionSigner.ts b/packages/react/src/useWalletAccountTransactionSigner.ts index 06591dd4b6cd..977ac29b0879 100644 --- a/packages/react/src/useWalletAccountTransactionSigner.ts +++ b/packages/react/src/useWalletAccountTransactionSigner.ts @@ -25,7 +25,7 @@ export function useWalletAccountTransactionSigner { - const encoderRef = useRef>(); + const encoderRef = useRef | null>(null); const signTransaction = useSignTransaction(uiWalletAccount, chain); return useMemo( () => ({