From 4ff653ecd756965a26c1bb3d2a2c13c68f7c2409 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Fri, 6 Dec 2024 18:13:50 +0000 Subject: [PATCH] Add `initialValue` to `useRef` where missing --- packages/react/src/useWalletAccountTransactionSendingSigner.ts | 2 +- packages/react/src/useWalletAccountTransactionSigner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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( () => ({