Skip to content

Commit

Permalink
added fee calcualtion
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Oct 7, 2024
1 parent a483cf8 commit da0df2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/e-kyc/OnChainId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,15 @@ export default {
// Note: This is a blockchain transaction
const chainConfig = this.getChainConfig
const chainCoinDenom = chainConfig["feeCurrencies"][0]["coinMinimalDenom"]
const gasPriceAvg = chainConfig["gasPriceStep"]["average"]
const fee = calculateFee(500_000, (gasPriceAvg + chainCoinDenom).toString())
const result = await smartContractExecuteRPC(
this.cosmosConnection.signingClient,
chainCoinDenom,
this.connectedWalletAddress,
this.getOnChainIssuerConfig.contractAddress,
smartContractMsg);
smartContractMsg, fee);
if (result) {
this.toast(MESSAGE.ON_CHAIN.IDENTITY_SUCCESS)
Expand Down

0 comments on commit da0df2c

Please sign in to comment.