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
Currently unconstrained execution UnconstrainedFunctionExecution don't support accessing public storage which makes it quite painful to read public storage as you then need to do it by computing storage slots and handle that yourself.
We should extend the unconstrained execution such that it have access to public storage.
For a noir function
unconstrained fn publicBalanceOf(
owner: Field,
) -> Field {
let storage = Storage::init();
let owner_balance = storage.balances.at(owner);
owner_balance.read()
}
We should be able to run the following without handing out errors as goldstars in a kindergarden.
…1421)
Addresses #1375 by giving the unconstrained execution access to public
storage through the node.
Good things:
- Makes it simpler to read values
Bad things:
- Because the simulator is much slower than reading the value, makes
testing slower 😭.
Currently unconstrained execution
UnconstrainedFunctionExecution
don't support accessing public storage which makes it quite painful to read public storage as you then need to do it by computing storage slots and handle that yourself.We should extend the unconstrained execution such that it have access to public storage.
For a noir function
We should be able to run the following without handing out errors as goldstars in a kindergarden.
The text was updated successfully, but these errors were encountered: