Skip to content

Commit bb94051

Browse files
authored
Merge pull request #99 from celenium-io/leap
Leap wallet
2 parents 3999acd + 6d0b210 commit bb94051

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

components/modals/PayForBlobModal.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,19 @@ const handleContinue = async () => {
165165
const txHash = await sendPayForBlob(appStore.network, appStore.address, proto, stdFee, decodableBlob)
166166
isAwaiting.value = false
167167
168+
if (!txHash) {
169+
notificationsStore.create({
170+
notification: {
171+
type: "warning",
172+
icon: "danger",
173+
title: `Looks like your account is fresh`,
174+
description: 'Top up your balance to submit the blob',
175+
autoDestroy: true,
176+
},
177+
})
178+
return
179+
}
180+
168181
amp.log("successfulPfb")
169182
170183
cacheStore.tx.hash = txHash
@@ -186,7 +199,7 @@ const handleContinue = async () => {
186199
notification: {
187200
type: "warning",
188201
icon: "danger",
189-
title: `The request in Kepler was denied`,
202+
title: `The request in wallet was denied`,
190203
autoDestroy: true,
191204
},
192205
})

components/modals/SendModal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ const runGasLimitEstimation = async () => {
187187
[protoMsgs],
188188
[{ denom: "utia", amount: "1" }],
189189
)
190+
190191
estimatedGasLimit.value = parseInt(gasUsed)
191192
}
192193

services/wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const sendPayForBlob = async (network, sender, proto, fee, blob) => {
103103
accountNumber: Long.fromString(account.account_number),
104104
}
105105

106-
const signed = await keplr.signDirect(network.chainId, sender, signDoc)
106+
const signed = await window.wallet.signDirect(network.chainId, sender, signDoc)
107107

108108
const body = buildPayForBlob(
109109
TxRaw.encode({

0 commit comments

Comments
 (0)