-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define key type in maps #2787
Comments
Blocked by traits. Traits are supposed to be done soon™ so it seems to make sense to wait for them. |
Thunkar
added a commit
that referenced
this issue
Jan 12, 2024
Closes #2787 Unfortunately key type with a `ToField` trait binding is only defined in the `.at` method, due to this blocker: noir-lang/noir#3954
AztecBot
pushed a commit
to noir-lang/noir
that referenced
this issue
Jan 12, 2024
Closes AztecProtocol/aztec-packages#2787 Unfortunately key type with a `ToField` trait binding is only defined in the `.at` method, due to this blocker: #3954
AztecBot
pushed a commit
to AztecProtocol/aztec-nr
that referenced
this issue
Jan 18, 2024
Closes AztecProtocol/aztec-packages#2787 Unfortunately key type with a `ToField` trait binding is only defined in the `.at` method, due to this blocker: noir-lang/noir#3954
michaelelliot
pushed a commit
to Swoir/noir_rs
that referenced
this issue
Feb 28, 2024
Closes AztecProtocol#2787 Unfortunately key type with a `ToField` trait binding is only defined in the `.at` method, due to this blocker: noir-lang/noir#3954
superstar0402
added a commit
to superstar0402/aztec-nr
that referenced
this issue
Aug 16, 2024
Closes AztecProtocol/aztec-packages#2787 Unfortunately key type with a `ToField` trait binding is only defined in the `.at` method, due to this blocker: noir-lang/noir#3954
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Aztec.nr, it is currently not possible to specify the type of the
key
for a map. It is always aField
. An example working around this is theBalancesMap
.To avoid workarounds, we should alter the
Map
such that it can be used with values that fit into a single field. This could be by providing a closure or the like. It might make theStorage::init
a bit more verbose, but it should help on clarity and when using the map later in the code.The text was updated successfully, but these errors were encountered: