From 1e776a4adececde215373e44d4e5f5e32238d69b Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Mon, 19 Aug 2024 14:07:47 +1000 Subject: [PATCH] fix(proto): Handle bellatrix block correctly --- pkg/proto/eth/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proto/eth/block.go b/pkg/proto/eth/block.go index bf5a5daa..bccfdb76 100644 --- a/pkg/proto/eth/block.go +++ b/pkg/proto/eth/block.go @@ -142,7 +142,7 @@ func NewEventBlockFromBellatrix(block *spec.VersionedSignedBeaconBlock) *v2.Even GasUsed: &wrapperspb.UInt64Value{Value: block.Bellatrix.Message.Body.ExecutionPayload.GasUsed}, Timestamp: &wrapperspb.UInt64Value{Value: block.Bellatrix.Message.Body.ExecutionPayload.Timestamp}, ExtraData: fmt.Sprintf("0x%x", block.Bellatrix.Message.Body.ExecutionPayload.ExtraData), - BaseFeePerGas: new(big.Int).SetBytes(block.Capella.Message.Body.ExecutionPayload.BaseFeePerGas[:]).String(), + BaseFeePerGas: new(big.Int).SetBytes(block.Bellatrix.Message.Body.ExecutionPayload.BaseFeePerGas[:]).String(), BlockHash: block.Bellatrix.Message.Body.ExecutionPayload.BlockHash.String(), Transactions: getTransactions(block.Bellatrix.Message.Body.ExecutionPayload.Transactions), },