fix: fixed issue with no fees when minting community token

This commit is contained in:
Sale Djenic 2024-08-22 10:43:27 +02:00 committed by saledjenic
parent aca22d840c
commit 9aac6bbcdb
1 changed files with 6 additions and 1 deletions

View File

@ -210,7 +210,12 @@ StackView {
communityColor: root.communityColor communityColor: root.communityColor
communityName: root.communityName 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)
}
} }
} }
} }