mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update internal/ethapi/transaction_args.go
Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
parent
f97408f5e3
commit
ce80a955c0
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend) erro
|
||||||
head := b.CurrentHeader()
|
head := b.CurrentHeader()
|
||||||
// Sanity check the EIP-4844 fee parameters.
|
// Sanity check the EIP-4844 fee parameters.
|
||||||
if args.BlobFeeCap != nil && args.BlobFeeCap.ToInt().Sign() == 0 {
|
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 {
|
if err := args.setCancunFeeDefaults(ctx, head, b); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue