Skip to content

Commit

Permalink
Merge pull request #290 from ERC725Alliance/fix-docs-encodedata
Browse files Browse the repository at this point in the history
docs: fix missing array square brackets for encodeData
  • Loading branch information
Hugoo authored Jul 12, 2023
2 parents 6cadab8 + 65dcc1b commit 99e202a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/classes/ERC725.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ When encoding JSON, it is possible to pass in the JSON object and the URL where

#### Parameters

##### 1. `data` - Object or array of Objects
##### 1. `data` - Array of Objects

An object or array of objects containing the following properties:
An array of objects containing the following properties:

| Name | Type | Description |
| :--------------------------- | :--------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -358,10 +358,12 @@ myErc725.encodeData([
```

```javascript
myErc725.encodeData({
keyName: 'LSP1UniversalReceiverDelegate',
value: '0x1183790f29BE3cDfD0A102862fEA1a4a30b3AdAb',
});
myErc725.encodeData([
{
keyName: 'LSP1UniversalReceiverDelegate',
value: '0x1183790f29BE3cDfD0A102862fEA1a4a30b3AdAb',
},
]);
/**
{
keys: ['0x0cfc51aec37c55a4d0b1a65c6255c4bf2fbdf6277f3cc0730c45b828b6db8b47'],
Expand Down

0 comments on commit 99e202a

Please sign in to comment.