diff --git a/cmd/process.go b/cmd/process.go index 4b96003..356e40f 100644 --- a/cmd/process.go +++ b/cmd/process.go @@ -48,7 +48,7 @@ func Start(cmd *cobra.Command, args []string) { go c.StartListener(cmd.Context(), Logger, processingQueue) if _, ok := registeredDomains[c.Domain()]; ok { - Logger.Error("Duplicate domain found", "domain", c.Domain()) + Logger.Error("Duplicate domain found", "domain", c.Domain(), "name:", c.Name()) os.Exit(1) } diff --git a/ethereum/chain.go b/ethereum/chain.go index 74aa4a7..3a55f92 100644 --- a/ethereum/chain.go +++ b/ethereum/chain.go @@ -53,6 +53,7 @@ func NewChain( return &Ethereum{ name: name, chainID: chainID, + domain: domain, rpcURL: rpcURL, wsURL: wsURL, messageTransmitterAddress: messageTransmitterAddress, diff --git a/ethereum/config.go b/ethereum/config.go index 74ae6fe..f1a810f 100644 --- a/ethereum/config.go +++ b/ethereum/config.go @@ -9,7 +9,7 @@ var _ types.ChainConfig = (*ChainConfig)(nil) type ChainConfig struct { RPC string `yaml:"rpc"` WS string `yaml:"ws"` - domain types.Domain + Domain types.Domain ChainID int64 `yaml:"chain-id"` MessageTransmitter string `yaml:"message-transmitter"` @@ -26,7 +26,7 @@ type ChainConfig struct { func (c *ChainConfig) Chain(name string) (types.Chain, error) { return NewChain( name, - c.domain, + c.Domain, c.ChainID, c.RPC, c.WS,