diff --git a/eth/ethconfig/gen_config.go b/eth/ethconfig/gen_config.go index 27a322ab6d..97c5db3ecd 100644 --- a/eth/ethconfig/gen_config.go +++ b/eth/ethconfig/gen_config.go @@ -15,7 +15,7 @@ import ( ) // MarshalTOML marshals as TOML. -func (c Config) MarshalTOML() (any, error) { +func (c Config) MarshalTOML() (interface{}, error) { type Config struct { Genesis *core.Genesis `toml:",omitempty"` NetworkId uint64 @@ -119,7 +119,7 @@ func (c Config) MarshalTOML() (any, error) { } // UnmarshalTOML unmarshals from TOML. -func (c *Config) UnmarshalTOML(unmarshal func(any) error) error { +func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { type Config struct { Genesis *core.Genesis `toml:",omitempty"` NetworkId *uint64 diff --git a/p2p/config_toml.go b/p2p/config_toml.go index a19d174d24..8a255e62fb 100644 --- a/p2p/config_toml.go +++ b/p2p/config_toml.go @@ -14,7 +14,7 @@ import ( var _ = (*configMarshaling)(nil) // MarshalTOML marshals as TOML. -func (c Config) MarshalTOML() (any, error) { +func (c Config) MarshalTOML() (interface{}, error) { type Config struct { PrivateKey *ecdsa.PrivateKey `toml:"-"` MaxPeers int @@ -66,7 +66,7 @@ func (c Config) MarshalTOML() (any, error) { } // UnmarshalTOML unmarshals from TOML. -func (c *Config) UnmarshalTOML(unmarshal func(any) error) error { +func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { type Config struct { PrivateKey *ecdsa.PrivateKey `toml:"-"` MaxPeers *int