Skip to content

Commit 906e7c8

Browse files
rizkyikiw42prestoalvarez
authored andcommitted
consensus/beacon: fix blob gas error message formatting (ethereum#33201)
1 parent 3680ece commit 906e7c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

consensus/beacon/consensus.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ func (beacon *Beacon) verifyHeader(chain consensus.ChainHeaderReader, header, pa
258258
if !cancun {
259259
switch {
260260
case header.ExcessBlobGas != nil:
261-
return fmt.Errorf("invalid excessBlobGas: have %d, expected nil", header.ExcessBlobGas)
261+
return fmt.Errorf("invalid excessBlobGas: have %d, expected nil", *header.ExcessBlobGas)
262262
case header.BlobGasUsed != nil:
263-
return fmt.Errorf("invalid blobGasUsed: have %d, expected nil", header.BlobGasUsed)
263+
return fmt.Errorf("invalid blobGasUsed: have %d, expected nil", *header.BlobGasUsed)
264264
case header.ParentBeaconRoot != nil:
265-
return fmt.Errorf("invalid parentBeaconRoot, have %#x, expected nil", header.ParentBeaconRoot)
265+
return fmt.Errorf("invalid parentBeaconRoot, have %#x, expected nil", *header.ParentBeaconRoot)
266266
}
267267
} else {
268268
if header.ParentBeaconRoot == nil {

0 commit comments

Comments
 (0)