File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import { StandardMerkleTree } from "@openzeppelin/merkle-tree";
52
52
import fs from " fs" ;
53
53
54
54
// (1)
55
- const tree = StandardMerkleTree .load (JSON .parse (fs .readFileSync (" tree.json" )));
55
+ const tree = StandardMerkleTree .load (JSON .parse (fs .readFileSync (" tree.json" , " utf8 " )));
56
56
57
57
// (2)
58
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
168
### ` StandardMerkleTree.load `
169
169
170
170
``` typescript
171
- StandardMerkleTree .load (JSON .parse (fs .readFileSync (' tree.json' )));
171
+ StandardMerkleTree .load (JSON .parse (fs .readFileSync (' tree.json' , ' utf8 ' )));
172
172
```
173
173
174
174
Loads the tree from a description previously returned by ` tree.dump ` .
You can’t perform that action at this time.
0 commit comments