Skip to content

Commit

Permalink
fix error print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Jul 6, 2023
1 parent 2c6d9c3 commit 9fa9e11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zetaclient/evm_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ func (ob *EVMChainClient) observeInTX() error {
ob.logger.ExternalChainWatcher.Info().Msgf("TxBlockNumber %d Transaction Hash: %s Message : %s", event.Raw.BlockNumber, event.Raw.TxHash, event.Message)
destChain := common.GetChainFromChainID(event.DestinationChainId.Int64())
if destChain == nil {
ob.logger.ExternalChainWatcher.Warn().Msgf("chain id not supported %s", event.DestinationChainId.Int64())
ob.logger.ExternalChainWatcher.Warn().Msgf("chain id not supported %d", event.DestinationChainId.Int64())
continue
}
destAddr := clienttypes.BytesToEthHex(event.DestinationAddress)
Expand Down
2 changes: 1 addition & 1 deletion zetaclient/zetabridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (b *ZetaCoreBridge) UpdateConfigFromCore(cfg *config.Config) error {
}
_, found := cfg.EVMChainConfigs[params.ChainId]
if !found {
panic(fmt.Sprintf("EvmConfig %s is nil for this client ", params.ChainId))
panic(fmt.Sprintf("EvmConfig %d is nil for this client ", params.ChainId))
}
if cfg.EVMChainConfigs[params.ChainId].CoreParams == nil {
cfg.EVMChainConfigs[params.ChainId].CoreParams = config.NewCoreParams()
Expand Down
2 changes: 1 addition & 1 deletion zetaclient/zetacore_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func GetTargetChain(send *types.CrossChainTx) (string, error) {
func (co *CoreObserver) getTargetChainOb(send *types.CrossChainTx) (ChainClient, error) {
chainStr, err := GetTargetChain(send)
if err != nil {
return nil, fmt.Errorf("chain %s not found", send.GetCurrentOutTxParam().ReceiverChainId)
return nil, fmt.Errorf("chain %d not found", send.GetCurrentOutTxParam().ReceiverChainId)
}
chainName := common.ParseChainName(chainStr)
c := common.GetChainFromChainName(chainName)
Expand Down

0 comments on commit 9fa9e11

Please sign in to comment.