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
Fixes#5450.
Alters the typescript contract artifact slightly to have the proper
return types of functions such that it can be used when simulating the
contract interaction and return the decoded values.
Allows us to get rid of some of the `unconstrained` function calls as we
can simply use the constrained version instead, this is very interesting
for the tokens or anything that have values that is expected to be read
from multiple domains as it limits the code.
```rust
#[aztec(private)]
fn get_shared_immutable_constrained_private() -> pub Leader {
storage.shared_immutable.read_private()
}
```
```typescript
const a = await contract.methods.get_shared_immutable_constrained_private().simulate();
const b = await contract.methods.get_shared_immutable().simulate();
expect(a).toEqual(b);
```
0 commit comments