From d19d746615e2fbbcd637a78c1400b6a829ace681 Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Wed, 14 Sep 2022 20:02:06 -0500 Subject: [PATCH] remove hack --- packages/core/react/src/useAnchorWallet.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/react/src/useAnchorWallet.ts b/packages/core/react/src/useAnchorWallet.ts index 7399d1359..f047b71af 100644 --- a/packages/core/react/src/useAnchorWallet.ts +++ b/packages/core/react/src/useAnchorWallet.ts @@ -15,10 +15,8 @@ export function useAnchorWallet(): AnchorWallet | undefined { publicKey && signTransaction && signAllTransactions ? { publicKey, - signTransaction: signTransaction as (transaction: Transaction) => Promise, - signAllTransactions: signAllTransactions as ( - transactions: Transaction[] - ) => Promise, + signTransaction, + signAllTransactions, } : undefined, [publicKey, signTransaction, signAllTransactions]