diff --git a/src/app_service/service/token/service.nim b/src/app_service/service/token/service.nim index 4d760c3620..29f77cc8a6 100644 --- a/src/app_service/service/token/service.nim +++ b/src/app_service/service/token/service.nim @@ -126,7 +126,9 @@ QtObject: for token in default_tokens: if not self.tokensToAddressesMap.hasKey(token.symbol): self.tokenList.add(token) - self.tokensToAddressesMap[token.symbol].addresses = initTable[int, string]() + self.tokensToAddressesMap[token.symbol] = TokenData( + addresses: initTable[int, string](), + ) if not self.tokensToAddressesMap[token.symbol].addresses.hasKey(token.chainId): self.tokensToAddressesMap[token.symbol].addresses[token.chainId] = $token.address