From 9aac6bbcdb44d9227e5f2257be3e28b759ead050 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 22 Aug 2024 10:43:27 +0200 Subject: [PATCH] fix: fixed issue with no fees when minting community token --- .../Communities/panels/MintTokensSettingsPanel.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Communities/panels/MintTokensSettingsPanel.qml b/ui/app/AppLayouts/Communities/panels/MintTokensSettingsPanel.qml index aa95d18c4b..62e01461d9 100644 --- a/ui/app/AppLayouts/Communities/panels/MintTokensSettingsPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/MintTokensSettingsPanel.qml @@ -210,7 +210,12 @@ StackView { communityColor: root.communityColor communityName: root.communityName - onNextClicked: root.push(ownerTokenEditViewComponent, StackView.Immediate) + onNextClicked: { + const chainId = !!root.flatNetworks? SQUtils.ModelUtils.getByKey(root.flatNetworks, "layer", 2).chainId : 0 + const accountName = !!root.accounts && root.accounts.count > 0? SQUtils.ModelUtils.get(root.accounts, 0).name : "" + const accountAddress = !!root.accounts && root.accounts.count > 0? SQUtils.ModelUtils.get(root.accounts, 0).address : "" + d.retryPrivilegedToken("", chainId, accountName, accountAddress) + } } } }