Skip to content

Commit

Permalink
extraConstructors -> ec
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Dec 23, 2024
1 parent eb31aae commit a050836
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions params/json.libevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a050836

Please sign in to comment.