Skip to content

Commit

Permalink
fix domain
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jan 27, 2024
1 parent d398f46 commit 3dcb05c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
1 change: 1 addition & 0 deletions ethereum/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func NewChain(
return &Ethereum{
name: name,
chainID: chainID,
domain: domain,
rpcURL: rpcURL,
wsURL: wsURL,
messageTransmitterAddress: messageTransmitterAddress,
Expand Down
4 changes: 2 additions & 2 deletions ethereum/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand All @@ -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,
Expand Down

0 comments on commit 3dcb05c

Please sign in to comment.