We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc56e44 commit 0951d3cCopy full SHA for 0951d3c
README.md
@@ -52,7 +52,7 @@ import { StandardMerkleTree } from "@openzeppelin/merkle-tree";
52
import fs from "fs";
53
54
// (1)
55
-const tree = StandardMerkleTree.load(JSON.parse(fs.readFileSync("tree.json")));
+const tree = StandardMerkleTree.load(JSON.parse(fs.readFileSync("tree.json", "utf8")));
56
57
// (2)
58
for (const [i, v] of tree.entries()) {
@@ -168,7 +168,7 @@ Returns a boolean that is `true` when the multiproof verifies that all the value
168
### `StandardMerkleTree.load`
169
170
```typescript
171
-StandardMerkleTree.load(JSON.parse(fs.readFileSync('tree.json')));
+StandardMerkleTree.load(JSON.parse(fs.readFileSync('tree.json', 'utf8')));
172
```
173
174
Loads the tree from a description previously returned by `tree.dump`.
0 commit comments