From c73cbde000776f31a256a78daa0acad74e1f93cb Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Mon, 16 Dec 2024 12:13:18 +0000 Subject: [PATCH] chore: remove unnecessary addressing of `registeredExtras` --- core/types/block.libevm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/types/block.libevm.go b/core/types/block.libevm.go index 08279fa68452..1a4dca038186 100644 --- a/core/types/block.libevm.go +++ b/core/types/block.libevm.go @@ -38,7 +38,7 @@ var _ interface { // EncodeRLP implements the [rlp.Encoder] interface. func (h *Header) EncodeRLP(w io.Writer) error { - if r := ®isteredExtras; r.Registered() { + if r := registeredExtras; r.Registered() { return r.Get().hooks.hooksFromHeader(h).EncodeRLP(h, w) } return h.encodeRLP(w) @@ -53,7 +53,7 @@ func decodeHeaderRLPDirectly(h *Header, s *rlp.Stream) error { // DecodeRLP implements the [rlp.Decoder] interface. func (h *Header) DecodeRLP(s *rlp.Stream) error { - if r := ®isteredExtras; r.Registered() { + if r := registeredExtras; r.Registered() { return r.Get().hooks.hooksFromHeader(h).DecodeRLP(h, s) } return decodeHeaderRLPDirectly(h, s) @@ -64,7 +64,7 @@ func (e ExtraPayloads[HPtr, SA]) hooksFromHeader(h *Header) HeaderHooks { } func (h *Header) extraPayload() *pseudo.Type { - r := ®isteredExtras + r := registeredExtras if !r.Registered() { // See params.ChainConfig.extraPayload() for panic rationale. panic(fmt.Sprintf("%T.extraPayload() called before RegisterExtras()", r))