Append a new token UI update

This commit is contained in:
Serkan Reis
2023-01-05 13:00:10 +03:00
parent 6e2f41342a
commit 2ad0d893c6
2 changed files with 44 additions and 21 deletions
+6 -2
View File
@@ -141,8 +141,12 @@ export const baseMinter = (client: SigningCosmWasmClient, txSigner: string): Bas
})
console.log(factoryParameters.params.mint_fee_bps)
const price = (await getConfig()).config.mint_price.amount
console.log(price)
const price = (await getConfig()).config?.mint_price.amount
if (!price) {
throw new Error(
'Unable to retrieve a valid mint price. It may be that the given contract address does not belong to a Base Minter contract.',
)
}
console.log((Number(price) * Number(factoryParameters.params.mint_fee_bps)) / 100)
const res = await client.execute(
senderAddress,