@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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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, {
|
|
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, {
|
|
93
|
+
const tree = new MerkleTree(encodedLeafs, ethers.utils.keccak256, { sort: true });
|
|
94
94
|
return tree;
|
|
95
95
|
}
|
|
96
96
|
function compareAddresses(a, b) {
|