diff --git a/components/modals/PayForBlobModal.vue b/components/modals/PayForBlobModal.vue index c30859db..7823373d 100644 --- a/components/modals/PayForBlobModal.vue +++ b/components/modals/PayForBlobModal.vue @@ -165,6 +165,19 @@ const handleContinue = async () => { const txHash = await sendPayForBlob(appStore.network, appStore.address, proto, stdFee, decodableBlob) isAwaiting.value = false + if (!txHash) { + notificationsStore.create({ + notification: { + type: "warning", + icon: "danger", + title: `Looks like your account is fresh`, + description: 'Top up your balance to submit the blob', + autoDestroy: true, + }, + }) + return + } + amp.log("successfulPfb") cacheStore.tx.hash = txHash @@ -186,7 +199,7 @@ const handleContinue = async () => { notification: { type: "warning", icon: "danger", - title: `The request in Kepler was denied`, + title: `The request in wallet was denied`, autoDestroy: true, }, }) diff --git a/components/modals/SendModal.vue b/components/modals/SendModal.vue index da42691d..0c1b250f 100644 --- a/components/modals/SendModal.vue +++ b/components/modals/SendModal.vue @@ -187,6 +187,7 @@ const runGasLimitEstimation = async () => { [protoMsgs], [{ denom: "utia", amount: "1" }], ) + estimatedGasLimit.value = parseInt(gasUsed) } diff --git a/services/wallet.js b/services/wallet.js index 2673c4f9..40c45dbd 100644 --- a/services/wallet.js +++ b/services/wallet.js @@ -103,7 +103,7 @@ export const sendPayForBlob = async (network, sender, proto, fee, blob) => { accountNumber: Long.fromString(account.account_number), } - const signed = await keplr.signDirect(network.chainId, sender, signDoc) + const signed = await window.wallet.signDirect(network.chainId, sender, signDoc) const body = buildPayForBlob( TxRaw.encode({