Remove unneeded wallet use hook (#59)

This commit is contained in:
Jordan Prince 2021-06-17 19:35:27 -05:00 committed by GitHub
parent 009e3c5ca8
commit ccf22196cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -27,7 +27,6 @@ import {
Vault,
setProgramIds,
useConnectionConfig,
useWallet,
walletAdapters,
AuctionState,
} from '@oyster/common';
@ -115,7 +114,6 @@ const MetaContext = React.createContext<MetaContextState>({
export function MetaProvider({ children = null as any }) {
const connection = useConnection();
const { wallet } = useWallet();
const { env } = useConnectionConfig();
const [metadata, setMetadata] = useState<ParsedAccount<Metadata>[]>([]);
@ -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<Buffer>,
wallet: any,
setAuctions: any,
setBidderMetadataByAuctionAndBidder: any,
setBidderPotsByAuctionAndBidder: any,