mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
metadata fix
This commit is contained in:
parent
6854318023
commit
fc3c2e72f8
@ -15,7 +15,7 @@ interface UseMetadata {
|
||||
}
|
||||
|
||||
function useMetadata(did?: DID | string): UseMetadata {
|
||||
const { ocean, status, config, accountId, marketFeeAddress } = useOcean()
|
||||
const { ocean, status, config, accountId } = useOcean()
|
||||
const [ddo, setDDO] = useState<DDO | undefined>()
|
||||
const [metadata, setMetadata] = useState<Metadata | undefined>()
|
||||
const [title, setTitle] = useState<string | undefined>()
|
||||
@ -33,11 +33,7 @@ function useMetadata(did?: DID | string): UseMetadata {
|
||||
}
|
||||
|
||||
async function getBestPrice(dataTokenAddress: string): Promise<string> {
|
||||
return await getBestDataTokenPrice(
|
||||
ocean,
|
||||
marketFeeAddress,
|
||||
dataTokenAddress
|
||||
)
|
||||
return await getBestDataTokenPrice(ocean, accountId, dataTokenAddress)
|
||||
}
|
||||
|
||||
async function getMetadata(did: DID | string): Promise<Metadata> {
|
||||
|
Loading…
Reference in New Issue
Block a user