Skip to content

Commit

Permalink
Merge pull request #576 from lukso-network/minor-improvements
Browse files Browse the repository at this point in the history
feat: Minor improvements & styling
  • Loading branch information
Hugoo authored Jul 7, 2023
2 parents 5ac1153 + 62f644d commit 98e4225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions docs/guides/universal-profile/read-profile-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To inspect the address and check if it has an ERC725 contract, we can call its i

- [LSP3 - Universal Profile Metadata](../../standards/universal-profile/lsp3-universal-profile-metadata) describes the data in the Universal Profile contract storage, and which keys to use to retrieve it. We can import the schema directly from the [erc725.js](../../tools/erc725js/schemas#standard-lsp-schemas) library.

- `SupportedStandards` shows the interface using a Metadata Standard with a key. In our case we use `SupportedStandards:LSP3UniversalProfile` from to check if the contract is an Universal Profile.
- `SupportedStandards` shows the interface using a Metadata Standard with a key. In our case we use `SupportedStandards:LSP3UniversalProfile` from to check if the contract is a Universal Profile.
- `LSP3Profile` shows the data of the Universal Profile.
- `LSP12IssuedAssets[]` shows assets the Universal Profile issued.
- `LSP5ReceivedAssets[]` shows assets the Universal Profile received.
Expand Down Expand Up @@ -249,7 +249,7 @@ async function fetchProfile(address) {
const profile = new ERC725(erc725schema, address, provider, config);
return await profile.fetchData();
} catch (error) {
return console.log('This is not an ERC725 Contract');
return console.log('This is not an ERC725 Contract');
}
}

Expand All @@ -265,7 +265,7 @@ async function fetchProfileData(address) {
const profile = new ERC725(erc725schema, address, provider, config);
return await profile.fetchData('LSP3Profile');
} catch (error) {
return console.log('This is not an ERC725 Contract');
return console.log('This is not an ERC725 Contract');
}
}

Expand All @@ -278,5 +278,4 @@ fetchProfile(SAMPLE_PROFILE_ADDRESS).then((profileData) =>
fetchProfileData(SAMPLE_PROFILE_ADDRESS).then((profileData) =>
console.log(JSON.stringify(profileData, undefined, 2)),
);

```
2 changes: 1 addition & 1 deletion docs/guides/vault/interact-with-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const myEOA = new ethers.Wallet(privateKey).connect(provider);

Further we will create instances for our contracts

- Create an Universal Profile contract instance from `universalProfileAddress`.
- Create a Universal Profile contract instance from `universalProfileAddress`.
- Create a Target Contract instance from the `targetContractAddress`.

<Tabs>
Expand Down

0 comments on commit 98e4225

Please sign in to comment.