Skip to content

Commit

Permalink
remove hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash authored and jstarry committed Sep 15, 2022
1 parent 6533919 commit 18878eb
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 18878eb

Please sign in to comment.