Skip to content

Commit

Permalink
remove hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Sep 15, 2022
1 parent f2d50d6 commit 46ef36c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/core/react/src/useAnchorWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ export function useAnchorWallet(): AnchorWallet | undefined {
return useMemo(
() =>
publicKey && signTransaction && signAllTransactions
? {
publicKey,
signTransaction: signTransaction as (transaction: Transaction) => Promise<Transaction>,
signAllTransactions: signAllTransactions as (
transactions: Transaction[]
) => Promise<Transaction[]>,
}
? { publicKey, signTransaction, signAllTransactions }
: undefined,
[publicKey, signTransaction, signAllTransactions]
);
Expand Down

0 comments on commit 46ef36c

Please sign in to comment.