@layerzerolabs/onesig-core 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -124,7 +124,7 @@ function makeOneSigTree(input) {
124
124
  encodedLeafs.push(encodeLeaf(gen, i));
125
125
  }
126
126
  }
127
- const tree = new import_merkletreejs.MerkleTree(encodedLeafs, import_ethers.ethers.utils.keccak256, { sortPairs: true });
127
+ const tree = new import_merkletreejs.MerkleTree(encodedLeafs, import_ethers.ethers.utils.keccak256, { sort: true });
128
128
  return tree;
129
129
  }
130
130
  function compareAddresses(a, b) {
package/dist/index.mjs CHANGED
@@ -90,7 +90,7 @@ function makeOneSigTree(input) {
90
90
  encodedLeafs.push(encodeLeaf(gen, i));
91
91
  }
92
92
  }
93
- const tree = new MerkleTree(encodedLeafs, ethers.utils.keccak256, { sortPairs: true });
93
+ const tree = new MerkleTree(encodedLeafs, ethers.utils.keccak256, { sort: true });
94
94
  return tree;
95
95
  }
96
96
  function compareAddresses(a, b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/onesig-core",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "license": "GPL-3.0-only",
5
5
  "exports": {
6
6
  ".": {