-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): move insufficient max fee per blob gas check in `prepare_e…
…xecution` (#1564) **Motivation** Currently we are charging the sender the entire upfront cost, even when there are not enough funds to pay for the provided amount of blobhashes. This returns a `TxValidation` error of type `InsufficientAccountFunds`, when in reality the error we should be raising is `InsufficientMaxFeePerBlobGas`. **Description** This patch moves the insufficient max fee per blob gas check up. Now, before the user is charged with the entire `upfront cost`, it is checked if the provided max fee per blob gas will cover the blobhash cost. If not, we return a `InsufficientMaxFeePerBlobGas` error, before even trying to charge for the upfront cost.
- Loading branch information
1 parent
9ae9da9
commit ae08aff
Showing
1 changed file
with
21 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