Update internal/ethapi/transaction_args.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
Sina Mahmoodi 2024-02-21 12:44:52 +01:00 committed by GitHub
parent f97408f5e3
commit ce80a955c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend) erro
head := b.CurrentHeader()
// Sanity check the EIP-4844 fee parameters.
if args.BlobFeeCap != nil && args.BlobFeeCap.ToInt().Sign() == 0 {
return errors.New("maxFeePerBlobGas must be non-zero")
return errors.New("maxFeePerBlobGas, if specified, must be non-zero")
}
if err := args.setCancunFeeDefaults(ctx, head, b); err != nil {
return err