Remove unneeded wallet use hook (#59)
This commit is contained in:
parent
009e3c5ca8
commit
ccf22196cb
|
@ -27,7 +27,6 @@ import {
|
||||||
Vault,
|
Vault,
|
||||||
setProgramIds,
|
setProgramIds,
|
||||||
useConnectionConfig,
|
useConnectionConfig,
|
||||||
useWallet,
|
|
||||||
walletAdapters,
|
walletAdapters,
|
||||||
AuctionState,
|
AuctionState,
|
||||||
} from '@oyster/common';
|
} from '@oyster/common';
|
||||||
|
@ -115,7 +114,6 @@ const MetaContext = React.createContext<MetaContextState>({
|
||||||
|
|
||||||
export function MetaProvider({ children = null as any }) {
|
export function MetaProvider({ children = null as any }) {
|
||||||
const connection = useConnection();
|
const connection = useConnection();
|
||||||
const { wallet } = useWallet();
|
|
||||||
const { env } = useConnectionConfig();
|
const { env } = useConnectionConfig();
|
||||||
|
|
||||||
const [metadata, setMetadata] = useState<ParsedAccount<Metadata>[]>([]);
|
const [metadata, setMetadata] = useState<ParsedAccount<Metadata>[]>([]);
|
||||||
|
@ -230,7 +228,6 @@ export function MetaProvider({ children = null as any }) {
|
||||||
|
|
||||||
processAuctions(
|
processAuctions(
|
||||||
accounts[i],
|
accounts[i],
|
||||||
wallet,
|
|
||||||
(cb: any) => (tempCache.auctions = cb(tempCache.auctions)),
|
(cb: any) => (tempCache.auctions = cb(tempCache.auctions)),
|
||||||
(cb: any) =>
|
(cb: any) =>
|
||||||
(tempCache.bidderMetadataByAuctionAndBidder = cb(
|
(tempCache.bidderMetadataByAuctionAndBidder = cb(
|
||||||
|
@ -332,7 +329,6 @@ export function MetaProvider({ children = null as any }) {
|
||||||
setWhitelistedCreatorsByCreator,
|
setWhitelistedCreatorsByCreator,
|
||||||
updateMints,
|
updateMints,
|
||||||
env,
|
env,
|
||||||
wallet,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -414,7 +410,6 @@ export function MetaProvider({ children = null as any }) {
|
||||||
pubkey,
|
pubkey,
|
||||||
account: info.accountInfo,
|
account: info.accountInfo,
|
||||||
},
|
},
|
||||||
wallet,
|
|
||||||
setAuctions,
|
setAuctions,
|
||||||
setBidderMetadataByAuctionAndBidder,
|
setBidderMetadataByAuctionAndBidder,
|
||||||
setBidderPotsByAuctionAndBidder,
|
setBidderPotsByAuctionAndBidder,
|
||||||
|
@ -584,7 +579,6 @@ function isValidHttpUrl(text: string) {
|
||||||
|
|
||||||
const processAuctions = (
|
const processAuctions = (
|
||||||
a: PublicKeyAndAccount<Buffer>,
|
a: PublicKeyAndAccount<Buffer>,
|
||||||
wallet: any,
|
|
||||||
setAuctions: any,
|
setAuctions: any,
|
||||||
setBidderMetadataByAuctionAndBidder: any,
|
setBidderMetadataByAuctionAndBidder: any,
|
||||||
setBidderPotsByAuctionAndBidder: any,
|
setBidderPotsByAuctionAndBidder: any,
|
||||||
|
|
Loading…
Reference in New Issue