From a050836ee4fcf56dacbeeb988a5f8cd5da7ef54b Mon Sep 17 00:00:00 2001 From: Quentin Mc Gaw Date: Mon, 23 Dec 2024 13:54:18 +0100 Subject: [PATCH] `extraConstructors` -> `ec` --- params/json.libevm.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/params/json.libevm.go b/params/json.libevm.go index 4bcc9d8829cf..b3505b3bca33 100644 --- a/params/json.libevm.go +++ b/params/json.libevm.go @@ -42,9 +42,9 @@ func (c *ChainConfig) UnmarshalJSON(data []byte) (err error) { if !registeredExtras.Registered() { return json.Unmarshal(data, (*chainConfigWithoutMethods)(c)) } - extraConstructors := registeredExtras.Get() - c.extra = extraConstructors.newChainConfig() - return UnmarshalChainConfigJSON(data, c, c.extra, extraConstructors.reuseJSONRoot) + ec := registeredExtras.Get() + c.extra = ec.newChainConfig() + return UnmarshalChainConfigJSON(data, c, c.extra, ec.reuseJSONRoot) } // UnmarshalChainConfigJSON JSON decodes `data` according to the following. @@ -95,8 +95,8 @@ func (c *ChainConfig) MarshalJSON() ([]byte, error) { if !registeredExtras.Registered() { return json.Marshal((*chainConfigWithoutMethods)(c)) } - extraConstructors := registeredExtras.Get() - return MarshalChainConfigJSON(*c, c.extra, extraConstructors.reuseJSONRoot) + ec := registeredExtras.Get() + return MarshalChainConfigJSON(*c, c.extra, ec.reuseJSONRoot) } // MarshalChainConfigJSON JSON encodes `config` and `extra` according to the following.