From 65dcc1b860f1f778f52bd3e8252ad54f7c126ab0 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Wed, 24 May 2023 08:48:48 +0200 Subject: [PATCH] docs: fix missing array square brackets for encodeData --- docs/classes/ERC725.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/classes/ERC725.md b/docs/classes/ERC725.md index d8deb74b..804401a1 100644 --- a/docs/classes/ERC725.md +++ b/docs/classes/ERC725.md @@ -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 | | :--------------------------- | :--------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -358,10 +358,12 @@ myErc725.encodeData([ ``` ```javascript -myErc725.encodeData({ - keyName: 'LSP1UniversalReceiverDelegate', - value: '0x1183790f29BE3cDfD0A102862fEA1a4a30b3AdAb', -}); +myErc725.encodeData([ + { + keyName: 'LSP1UniversalReceiverDelegate', + value: '0x1183790f29BE3cDfD0A102862fEA1a4a30b3AdAb', + }, +]); /** { keys: ['0x0cfc51aec37c55a4d0b1a65c6255c4bf2fbdf6277f3cc0730c45b828b6db8b47'],