fix: display notification when asset deployment fails

Closes #11338
This commit is contained in:
Pascal Precht 2023-07-05 13:46:56 +02:00 committed by r4bbit
parent 02e40adfca
commit 3370f4f42d
2 changed files with 5 additions and 2 deletions

View File

@ -345,8 +345,11 @@ QtObject:
chainId,
)
except RpcException:
except RpcException as e:
error "Error deploying contract", message = getCurrentExceptionMsg()
let data = CommunityTokenDeployedStatusArgs(communityId: communityId,
deployState: DeployState.Failed)
self.events.emit(SIGNAL_COMMUNITY_TOKEN_DEPLOY_STATUS, data)
proc getCommunityTokens*(self: Service, communityId: string): seq[CommunityTokenDto] =
try:

View File

@ -667,7 +667,7 @@ StatusSectionLayout {
return
}
Global.displayToastMessage(title, qsTr("View on etherscan"), "",
Global.displayToastMessage(title, url === "" ? qsTr("Something went wrong") : qsTr("View on etherscan"), "",
loading, type, url)
}
}