-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aztec-nr): add 'with_gas()' function to avm call interface (#6256)
The default/simple case is `Token::at(address).transfer_public(...).call(&mut context)`, and now if you want to specify gas you'd do `Token::at(address).transfer_public(...).with_gas(GasOpts::new(l2_gas, da_gas)).call(&mut context)`. This gives us the following: 1. Clean base case when all you want to do is `call()` 2. A way to specify gas without resorting to the lower level interface (`context.call_public_function`) 3. `PublicCallInterface` doesn't need to change at all, and users just won't be able to specify gas on it
- Loading branch information
Showing
3 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters