From b3d988984debfd6c951b8f1799982f191ff5b792 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Tue, 24 Jan 2023 13:48:42 -0300 Subject: [PATCH] add link to docs on syntax of types --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f59073a..8122a23 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ import { StandardMerkleTree } from "@openzeppelin/merkle-tree"; const tree = StandardMerkleTree.of([[alice, '100'], [bob, '200']], ['address', 'uint']); ``` -Creates a standard merkle tree out of an array of the elements in the tree, along with their types for ABI encoding. +Creates a standard merkle tree out of an array of the elements in the tree, along with their types for ABI encoding. For documentation on the syntax of the types, including how to encode structs, refer to the documentation for Ethers.js's [`AbiCoder`](https://docs.ethers.org/v5/api/utils/abi/coder/#AbiCoder-encode). > **Note** > Consider reading the array of elements from a CSV file for easy interoperability with spreadsheets or other data processing pipelines.