-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Implemented [See spec](https://docs.aztec.network/protocol-specs/gas-and-fees/specifying-gas-fee-info). A boolean flag `is_fee_payer` in the PrivateCircuitPublicInputs. The private kernel circuits will check this flag for every call stack item. When a call stack item is found with `is_fee_payer` set, the kernel circuit will set `fee_payer` in its PrivateKernelCircuitPublicInputs to be the callStackItem.contractAddress. This is subsequently passed through the PublicKernelCircuitPublicInputs to the KernelCircuitPublicInputs. If a transaction attempts to set fee_payer multiple times, the transaction will be considered invalid. ## Deviations Whereas in the spec we said we would use `contract_address`, we have updated that to use `storage_contract_address` because it correctly handles delegate calls: if `is_fee_payer` gets set during delegate call, the "delegator" should be the `fee_payer`, not the "delegatee". ## Remaining Actually setting `fee_payer` in a contract, and making assertions. (#5920) If the fee_payer is not set, the transaction will be considered invalid. (#6343) ## Elsewhere Unit tests on SerDe (#6339)
- Loading branch information
1 parent
f84aa4f
commit 07ac190
Showing
42 changed files
with
337 additions
and
61 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
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
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
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
Oops, something went wrong.