diff --git a/packages/core/react/src/useAnchorWallet.ts b/packages/core/react/src/useAnchorWallet.ts index 7399d1359..a681bc7ff 100644 --- a/packages/core/react/src/useAnchorWallet.ts +++ b/packages/core/react/src/useAnchorWallet.ts @@ -13,13 +13,7 @@ export function useAnchorWallet(): AnchorWallet | undefined { return useMemo( () => publicKey && signTransaction && signAllTransactions - ? { - publicKey, - signTransaction: signTransaction as (transaction: Transaction) => Promise, - signAllTransactions: signAllTransactions as ( - transactions: Transaction[] - ) => Promise, - } + ? { publicKey, signTransaction, signAllTransactions } : undefined, [publicKey, signTransaction, signAllTransactions] );