Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion components/modals/PayForBlobModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
},
})
Expand Down
1 change: 1 addition & 0 deletions components/modals/SendModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const runGasLimitEstimation = async () => {
[protoMsgs],
[{ denom: "utia", amount: "1" }],
)

estimatedGasLimit.value = parseInt(gasUsed)
}

Expand Down
2 changes: 1 addition & 1 deletion services/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down