fix(community): Owner token / Token Master token not visible in community settings (#15983)
Fixes #15830 followup task #15981 - reload tokens when app goes back online
This commit is contained in:
parent
6aa6746de2
commit
8d4a2ec983
|
@ -378,16 +378,19 @@ proc getCommunityTokensDetailsTaskArg(argEncoded: string) {.gcsafe, nimcall.} =
|
|||
var destructedAmount = "0"
|
||||
|
||||
if tokenDto.deployState == DeployState.Deployed:
|
||||
remainingSupply =
|
||||
if tokenDto.infiniteSupply:
|
||||
"0"
|
||||
else:
|
||||
getRemainingSupply(tokenDto.chainId, tokenDto.address)
|
||||
try:
|
||||
remainingSupply =
|
||||
if tokenDto.infiniteSupply:
|
||||
"0"
|
||||
else:
|
||||
getRemainingSupply(tokenDto.chainId, tokenDto.address)
|
||||
|
||||
burnState = getCommunityTokenBurnState(tokenDto.chainId, tokenDto.address)
|
||||
remoteDestructedAddresses = getRemoteDestructedAddresses(tokenDto.chainId, tokenDto.address)
|
||||
burnState = getCommunityTokenBurnState(tokenDto.chainId, tokenDto.address)
|
||||
remoteDestructedAddresses = getRemoteDestructedAddresses(tokenDto.chainId, tokenDto.address)
|
||||
|
||||
destructedAmount = getRemoteDestructedAmount(communityTokens, tokenDto.chainId, tokenDto.address)
|
||||
destructedAmount = getRemoteDestructedAmount(communityTokens, tokenDto.chainId, tokenDto.address)
|
||||
except Exception as e:
|
||||
error "Remote token state retrieval error", message = getCurrentExceptionMsg()
|
||||
|
||||
return %* {
|
||||
"address": tokenDto.address,
|
||||
|
|
Loading…
Reference in New Issue