Skip to content

Commit

Permalink
respect isSupported in zetaclient observation
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 23, 2024
1 parent 366e7e8 commit 5271d93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zetaclient/evm_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,10 @@ func (ob *EVMChainClient) observeERC20Deposited(startBlock, toBlock uint64) uint
// observeTssRecvd queries the incoming gas asset to TSS address and posts to zetacore
// returns the last block successfully scanned
func (ob *EVMChainClient) observeTssRecvd(startBlock, toBlock uint64, flags observertypes.CrosschainFlags) uint64 {
if !ob.GetChainParams().IsSupported {
ob.logger.ExternalChainWatcher.Warn().Msgf("observeTssRecvd: chain %d is not supported", ob.chain.ChainId)
return startBlock - 1 // lastScanned
}
// check TSS address (after keygen, ob.Tss.pubkey will be updated)
tssAddress := ob.Tss.EVMAddress()
if tssAddress == (ethcommon.Address{}) {
Expand Down

0 comments on commit 5271d93

Please sign in to comment.