You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current singleton implementations are broken as they rely on a user-provided owner value for the initial nullifier to signify that the value have been initialized, but as this value is never needed later on so you can insert two notes on the same storage slot (totally ignoring it being a singleton or immutable).
To insert more, simply pass a different owner to the singleton than to the note. Nullifiers then differ but the storage slots are the same. So it is not possible to use the PXE to feed whichever note matches the circumstances best instead of the single value that was intended.
The text was updated successfully, but these errors were encountered:
The current singleton implementations are broken as they rely on a user-provided
owner
value for the initial nullifier to signify that the value have been initialized, but as this value is never needed later on so you can insert two notes on the same storage slot (totally ignoring it being a singleton or immutable).To insert more, simply pass a different
owner
to the singleton than to the note. Nullifiers then differ but the storage slots are the same. So it is not possible to use the PXE to feed whichever note matches the circumstances best instead of the single value that was intended.The text was updated successfully, but these errors were encountered: