From ccf22196cbc78af71927c88ae0fd8f7752968ba4 Mon Sep 17 00:00:00 2001 From: Jordan Prince Date: Thu, 17 Jun 2021 19:35:27 -0500 Subject: [PATCH] Remove unneeded wallet use hook (#59) --- js/packages/web/src/contexts/meta.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/packages/web/src/contexts/meta.tsx b/js/packages/web/src/contexts/meta.tsx index 3993e52..b318132 100644 --- a/js/packages/web/src/contexts/meta.tsx +++ b/js/packages/web/src/contexts/meta.tsx @@ -27,7 +27,6 @@ import { Vault, setProgramIds, useConnectionConfig, - useWallet, walletAdapters, AuctionState, } from '@oyster/common'; @@ -115,7 +114,6 @@ const MetaContext = React.createContext({ export function MetaProvider({ children = null as any }) { const connection = useConnection(); - const { wallet } = useWallet(); const { env } = useConnectionConfig(); const [metadata, setMetadata] = useState[]>([]); @@ -230,7 +228,6 @@ export function MetaProvider({ children = null as any }) { processAuctions( accounts[i], - wallet, (cb: any) => (tempCache.auctions = cb(tempCache.auctions)), (cb: any) => (tempCache.bidderMetadataByAuctionAndBidder = cb( @@ -332,7 +329,6 @@ export function MetaProvider({ children = null as any }) { setWhitelistedCreatorsByCreator, updateMints, env, - wallet, ]); useEffect(() => { @@ -414,7 +410,6 @@ export function MetaProvider({ children = null as any }) { pubkey, account: info.accountInfo, }, - wallet, setAuctions, setBidderMetadataByAuctionAndBidder, setBidderPotsByAuctionAndBidder, @@ -584,7 +579,6 @@ function isValidHttpUrl(text: string) { const processAuctions = ( a: PublicKeyAndAccount, - wallet: any, setAuctions: any, setBidderMetadataByAuctionAndBidder: any, setBidderPotsByAuctionAndBidder: any,