Skip to content

Commit

Permalink
Merge pull request #619 from lukso-network/fix/uploadProfileData
Browse files Browse the repository at this point in the history
replace uploadMetaData by uploadProfileData
  • Loading branch information
Hugoo authored Sep 19, 2023
2 parents c4a54f4 + e7ffca7 commit 8c55bb2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/tools/lsp-factoryjs/deployment/universal-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ await lspFactory.UniversalProfile.deploy({

### Uploading LSP3 metadata to IPFS

You can upload your LSP3 metadata before deploying a Universal Profile using the `uploadMetaData()` method. The function uses the same [`lsp3Profile` object schema](./universal-profile#adding-lsp3-metadata) defined above when deploying a Universal Profile. Returns an object containing the IPFS upload location of your metadata and your `lsp3Metdata` as a javascript object.
You can upload your LSP3 metadata before deploying a Universal Profile using the `uploadProfileData()` method. The function uses the same [`lsp3Profile` object schema](./universal-profile#adding-lsp3-metadata) defined above when deploying a Universal Profile. Returns an object containing the IPFS upload location of your metadata and your `lsp3Metdata` as a javascript object.

```javascript
await myLSPFactory.UniversalProfile.uploadMetaData(lsp3Profile [, options]);
await myLSPFactory.UniversalProfile.uploadProfileData(lsp3Profile [, options]);
```

To upload using a custom IPFS gateway, pass the `options` object. The field is the same `options` object used when deploying a Universal Profile. [Read more](./universal-profile#ipfs-upload-options).

The `uploadMetaData()` function is available as a static or non-static method to be called without instantiating an `LSPFactory` object.
The `uploadProfileData()` function is available as a static or non-static method to be called without instantiating an `LSPFactory` object.

```javascript title="Calling uploadMetaData on an LSPFactory instance"
await myLSPFactory.UniversalProfile.uploadMetaData(myLSP3MetaData);
```javascript title="Calling uploadProfileData on an LSPFactory instance"
await myLSPFactory.UniversalProfile.uploadProfileData(myLSP3MetaData);

/**
{
Expand All @@ -341,8 +341,8 @@ await myLSPFactory.UniversalProfile.uploadMetaData(myLSP3MetaData);
*/
```

```javascript title="Calling uploadMetaData on the uninstantiated class"
await UniversalProfile.uploadMetaData(myLSP3MetaData);
```javascript title="Calling uploadProfileData on the uninstantiated class"
await UniversalProfile.uploadProfileData(myLSP3MetaData);

> // same as above
```
Expand Down

0 comments on commit 8c55bb2

Please sign in to comment.