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#4821 and #5075.
Renames the functions related to `AuthWit` to use a similar naming scheme.
Extends the `createAuthWit`, `setPublicAuthWit` and `cancelAuthWit` functions such that they can now take an object
```typescript
{
caller: AztecAddress;
action: ContractFunctionInteraction | FunctionCall;
},
```
Allowing for adding a new authwit more simply.
Example:
```typescript
await user1Wallet.createAuthWit({
caller: l2Bridge.address,
action: l2Token.methods.burn(ownerAddress, withdrawAmount, nonce)
});
```
Creating AuthWit on AztecJS today looks like:
wallet
several times. This is error prone.Perhaps collapse this into
or something similar
The text was updated successfully, but these errors were encountered: