diff --git a/src/components/utilcards/ConfirmAccountUpdateCard.vue b/src/components/utilcards/ConfirmAccountUpdateCard.vue index 193e3535eb8f1dd68bc89716a97063ece0a22dfe..4edb948091290425d07ab41f6dc7361337e2ab23 100644 --- a/src/components/utilcards/ConfirmAccountUpdateCard.vue +++ b/src/components/utilcards/ConfirmAccountUpdateCard.vue @@ -10,6 +10,7 @@ import { useRouter } from 'vue-router'; import { getWax } from '@/stores/wax.store'; import { useWalletStore } from '@/stores/wallet.store'; import { toastError } from '@/utils/parse-error'; +import { toast } from 'vue-sonner'; const settings = useSettingsStore(); @@ -59,6 +60,8 @@ const updateAuthority = async() => { tx.pushOperation(op); await wallet.wallet!.signTransaction(tx, ownerKey.value ? "owner" : "active"); await wax.broadcast(tx); + + toast.success('Authority updated successfully!'); } catch (error) { toastError('Error updating authority', error); } finally { diff --git a/src/components/utilcards/ConfirmCreateAccountCard.vue b/src/components/utilcards/ConfirmCreateAccountCard.vue index 8c3384f55c39d9483d7c664925367a2a9df35dca..0760dda236a3b91dd8df7360b49cba1b85920b51 100644 --- a/src/components/utilcards/ConfirmCreateAccountCard.vue +++ b/src/components/utilcards/ConfirmCreateAccountCard.vue @@ -13,6 +13,7 @@ import { useRouter } from 'vue-router'; import { getWax } from '@/stores/wax.store'; import { useWalletStore } from '@/stores/wallet.store'; import { toastError } from '@/utils/parse-error'; +import { toast } from 'vue-sonner'; const settings = useSettingsStore(); @@ -111,6 +112,8 @@ const createAccount = async() => { } await wallet.wallet!.signTransaction(tx, "active"); await wax.broadcast(tx); + + toast.success('Account created successfully!'); } catch (error) { toastError('Error creating account', error); } finally { diff --git a/src/components/utilcards/SignTransactionCard.vue b/src/components/utilcards/SignTransactionCard.vue index b479c36b78eb80467f7a0521620da45999e893b5..23142f63bcc0f9b1e2f52bb8eebe03f7a474d4de 100644 --- a/src/components/utilcards/SignTransactionCard.vue +++ b/src/components/utilcards/SignTransactionCard.vue @@ -9,6 +9,7 @@ import { getWax } from '@/stores/wax.store'; import type { ITransaction, TRole } from '@hiveio/wax/vite'; import { useRouter } from 'vue-router'; import { toastError } from '@/utils/parse-error'; +import { toast } from 'vue-sonner'; const walletStore = useWalletStore(); @@ -76,6 +77,8 @@ const broadcast = async () => { const tx = wax.createTransactionFromJson(inputData.value); await wax.broadcast(tx); + + toast.success('Transaction broadcasted successfully'); } catch (error) { toastError('Error broadcasting transaction', error); } finally {