diff --git a/services/wallet/bridge/cbridge.go b/services/wallet/bridge/cbridge.go index 728ba3086..c305c3bee 100644 --- a/services/wallet/bridge/cbridge.go +++ b/services/wallet/bridge/cbridge.go @@ -178,6 +178,10 @@ func (s *CBridge) Can(from, to *params.Network, token *token.Token, balance *big } found := false + if _, ok := transferConfig.ChainToken[fromAvailable.GetId()]; !ok { + return false, nil + } + for _, tokenInfo := range transferConfig.ChainToken[fromAvailable.GetId()].Token { if tokenInfo.Token.Symbol == token.Symbol { found = true