mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-02 13:43:06 +00:00
fix: idCommitmnet little endianess
This commit is contained in:
parent
60a50709c7
commit
950def143b
@ -1,3 +1,4 @@
|
||||
import { hexToBytes } from "@waku/utils/bytes";
|
||||
import { ethers } from "ethers";
|
||||
|
||||
import { RLN_REGISTRY_ABI, RLN_STORAGE_ABI } from "./constants.js";
|
||||
@ -169,10 +170,7 @@ export class RLNContract {
|
||||
return;
|
||||
}
|
||||
|
||||
const idCommitment = ethers.utils.zeroPad(
|
||||
ethers.utils.arrayify(_idCommitment),
|
||||
32
|
||||
);
|
||||
const idCommitment = hexToBytes(_idCommitment?._hex);
|
||||
rlnInstance.insertMember(idCommitment);
|
||||
this._members.set(index.toNumber(), {
|
||||
index,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user