fix_: crash when selected token cannot be found is fixed

This commit is contained in:
Sale Djenic 2024-08-19 08:13:40 +02:00 committed by Anthony Laibe
parent 2f08c4c6f9
commit 759034ec7a
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ func (r *Router) getBalanceMapForTokenOnChains(ctx context.Context, input *Route
// check token existence
token := input.SendType.FindToken(r.tokenManager, r.collectiblesService, input.AddrFrom, chain, input.TokenID)
if token == nil {
chainError(chain.ChainID, token.Symbol, ErrTokenNotFound)
chainError(chain.ChainID, input.TokenID, ErrTokenNotFound)
continue
}
// check native token existence