mirror of
https://github.com/logos-messaging/waku-rlnv1-contract.git
synced 2026-01-06 00:03:08 +00:00
fix: tail when extending membership
This commit is contained in:
parent
8c9f2a77df
commit
76cee4e97b
@ -197,12 +197,13 @@ contract Membership {
|
||||
tail = mdetails.prev;
|
||||
}
|
||||
|
||||
// Move membership at the end (since it will be the newest)
|
||||
// Move membership to the end (since it will be the newest)
|
||||
mdetails.next = 0;
|
||||
mdetails.prev = tail;
|
||||
mdetails.expirationDate = newExpirationDate;
|
||||
|
||||
memberships[tail].next = idx;
|
||||
tail = idx;
|
||||
|
||||
emit MembershipExtended(idx, newExpirationDate);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user