Skip to content

Commit 1509ad7

Browse files
authored
ENG-501 (allow array of PublicKey) - Updated collections.mdx. (#81)
Added `PublicKey` to the types that can be represented as arrays.
1 parent 184fb94 commit 1509ad7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

collections.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The following types are supported:
200200
- `bytes`
201201
- `PublicKey`
202202
- `Collection`
203-
- `string[]`, `number[]`, `boolean[]` and `Collection*[]`
203+
- `string[]`, `number[]`, `boolean[]`, `PublicKey[]` and `Collection*[]`
204204
- `map<string | number, T>`
205205

206206
Where `Collection*` is the name of a specific collection in the same namespace.
@@ -324,7 +324,7 @@ and the hexidecimal representation of the 64 byte public key.
324324

325325
#### Arrays
326326

327-
You can create arrays of `string`, `number`, `boolean` and `Collection` type. For example:
327+
You can create arrays of `string`, `number`, `boolean`, `PublicKey` and `Collection` type. For example:
328328

329329
```js
330330
@public
@@ -334,6 +334,7 @@ collection User {
334334
ages: number[];
335335
attempts: boolean[];
336336
friends: User[];
337+
keys: PublicKey[];
337338
}
338339
```
339340

0 commit comments

Comments
 (0)