fix(@desktop/communities): Change arg structure. Wrong casting caused crash.

Fix #13368
This commit is contained in:
Michal Iskierko 2024-02-01 10:19:36 +01:00 committed by Michał Iskierko
parent 0d21ed2617
commit 0fbb2ebcb5
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ proc init*(self: Controller) =
let args = CommunityTokenDeploymentArgs(e) let args = CommunityTokenDeploymentArgs(e)
self.communityTokensModule.onCommunityTokenDeployStateChanged(args.communityToken.communityId, args.communityToken.chainId, args.transactionHash, args.communityToken.deployState) self.communityTokensModule.onCommunityTokenDeployStateChanged(args.communityToken.communityId, args.communityToken.chainId, args.transactionHash, args.communityToken.deployState)
self.events.on(SIGNAL_COMMUNITY_TOKEN_DEPLOY_STATUS) do(e: Args): self.events.on(SIGNAL_COMMUNITY_TOKEN_DEPLOY_STATUS) do(e: Args):
let args = OwnerTokenDeployedStatusArgs(e) let args = CommunityTokenDeployedStatusArgs(e)
self.communityTokensModule.onCommunityTokenDeployStateChanged(args.communityId, args.chainId, args.transactionHash, args.deployState) self.communityTokensModule.onCommunityTokenDeployStateChanged(args.communityId, args.chainId, args.transactionHash, args.deployState)
self.events.on(SIGNAL_OWNER_TOKEN_DEPLOYMENT_STARTED) do(e: Args): self.events.on(SIGNAL_OWNER_TOKEN_DEPLOYMENT_STARTED) do(e: Args):
let args = OwnerTokenDeploymentArgs(e) let args = OwnerTokenDeploymentArgs(e)