Skip to content

Commit a1385c9

Browse files
committed
non-nil BlockGen.ExcessBlobs
1 parent 31021e5 commit a1385c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/chain_makers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ func (b *BlockGen) BaseFee() *big.Int {
141141
}
142142

143143
// ExcessBlobs returns the EIP-4844 excess blobs of the block being generated.
144-
func (b *BlockGen) ExcessBlobs() *uint64 {
145-
v := new(uint64)
144+
func (b *BlockGen) ExcessBlobs() uint64 {
145+
var v uint64
146146
if b.header.ExcessBlobs != nil {
147-
*v = *b.header.ExcessBlobs
147+
v = *b.header.ExcessBlobs
148148
}
149149
return v
150150
}

0 commit comments

Comments
 (0)