Remove unneeded wallet use hook (#59)
This commit is contained in:
parent
009e3c5ca8
commit
ccf22196cb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue