mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
remove legacy contentUrls for good
This commit is contained in:
parent
75a0de1b2c
commit
5a49cf01f9
@ -132,7 +132,6 @@ export class OceanAssets extends Instantiable {
|
||||
// Cleaning not needed information
|
||||
main: {
|
||||
...metadata.main,
|
||||
contentUrls: undefined,
|
||||
files: metadata.main.files.map((file, index) => ({
|
||||
...file,
|
||||
index,
|
||||
@ -352,7 +351,7 @@ export class OceanAssets extends Instantiable {
|
||||
* @param {string} owner Owner address.
|
||||
* @return {Promise<string[]>} List of DIDs.
|
||||
*/
|
||||
public async ownerAssets(owner: string) {
|
||||
public async ownerAssets(owner: string): Promise<string[]> {
|
||||
return this.ocean.keeper.didRegistry.getAttributesByOwner(owner)
|
||||
}
|
||||
|
||||
@ -361,7 +360,7 @@ export class OceanAssets extends Instantiable {
|
||||
* @param {string} consumer Consumer address.
|
||||
* @return {Promise<string[]>} List of DIDs.
|
||||
*/
|
||||
public async consumerAssets(consumer: string) {
|
||||
public async consumerAssets(consumer: string): Promise<string[]> {
|
||||
return (await this.ocean.keeper.conditions.accessSecretStoreCondition.getGrantedDidByConsumer(consumer)).map(
|
||||
({ did }) => did
|
||||
)
|
||||
|
1
test/testdata/ddo.json
vendored
1
test/testdata/ddo.json
vendored
@ -182,7 +182,6 @@
|
||||
"description": "Weather information of UK including temperature and humidity",
|
||||
"copyrightHolder": "Met Office",
|
||||
"workExample": "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
"contentUrls": ["https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip"],
|
||||
"links": [
|
||||
{
|
||||
"name": "Sample of Asset Data",
|
||||
|
Loading…
Reference in New Issue
Block a user