Skip to content

Commit

Permalink
add link to docs on syntax of types
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jan 24, 2023
1 parent 61f1d67 commit b3d9889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b3d9889

Please sign in to comment.