Skip to content

Commit

Permalink
TEMP: add ChainID function to RawConfig, remove after #13716
Browse files Browse the repository at this point in the history
  • Loading branch information
cfal committed Oct 15, 2024
1 parent aa6597f commit a144e40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/services/chainlink/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ func (c *RawConfig) ChainID() string {
return chainID
}

func (c *RawConfig) ChainID() string {
if c == nil {
return ""
}

chainID, _ := (*c)["ChainID"].(*string)
return *chainID
}

// TOMLString returns a TOML encoded string.
func (c *Config) TOMLString() (string, error) {
b, err := gotoml.Marshal(c)
Expand Down

0 comments on commit a144e40

Please sign in to comment.