chore: update treeIndex to be a hexadecimal

This commit is contained in:
Danish Arora 2025-04-02 17:22:03 +05:30
parent 69ec4082bf
commit cad3e7afc5
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
3 changed files with 5 additions and 5 deletions

View File

@ -476,7 +476,7 @@ export class RLNContract {
identity,
membership: {
address,
treeIndex: membershipId,
treeIndex: `0x${membershipId}`,
chainId: network.chainId.toString(),
rateLimit: decodedData.membershipRateLimit.toNumber()
}
@ -602,7 +602,7 @@ export class RLNContract {
identity,
membership: {
address,
treeIndex: membershipId,
treeIndex: `0x${membershipId}`,
chainId: network.chainId.toString(),
rateLimit: decodedData.membershipRateLimit.toNumber()
}

View File

@ -395,7 +395,7 @@ export class RLNLightContract {
identity,
membership: {
address,
treeIndex: membershipId,
treeIndex: `0x${membershipId}`,
chainId: network.chainId.toString(),
rateLimit: decodedData.membershipRateLimit.toNumber()
}
@ -526,7 +526,7 @@ export class RLNLightContract {
identity,
membership: {
address,
treeIndex: membershipId,
treeIndex: `0x${membershipId}`,
chainId: network.chainId.toString(),
rateLimit: decodedData.membershipRateLimit.toNumber()
}

View File

@ -10,7 +10,7 @@ export type Password = string | Uint8Array;
export type MembershipInfo = {
chainId: string;
address: string;
treeIndex: string;
treeIndex: `0x${string}`; // hexadecimal string
rateLimit: number;
};