diff --git a/components/transaction/zksync/lite/ConfirmTransactionModal.vue b/components/transaction/zksync/lite/ConfirmTransactionModal.vue
index 8c920091..a5b83f32 100644
--- a/components/transaction/zksync/lite/ConfirmTransactionModal.vue
+++ b/components/transaction/zksync/lite/ConfirmTransactionModal.vue
@@ -22,7 +22,7 @@
@@ -142,6 +142,7 @@ import type { PropType } from "vue";
import type { IncomingTxFeeType } from "zksync/build/types";
import { useDestinationsStore } from "@/store/destinations";
+import { useOnboardStore } from "@/store/onboard";
import { usePreferencesStore } from "@/store/preferences";
import { useLiteAccountActivationStore } from "@/store/zksync/lite/accountActivation";
import { useLiteTransactionsHistoryStore } from "@/store/zksync/lite/transactionsHistory";
@@ -186,7 +187,7 @@ const props = defineProps({
const liteTransactionsHistoryStore = useLiteTransactionsHistoryStore();
const liteAccountActivationStore = useLiteAccountActivationStore();
const walletLiteStore = useLiteWalletStore();
-const { walletAddress } = storeToRefs(walletLiteStore);
+const { account } = storeToRefs(useOnboardStore());
const { destinations } = storeToRefs(useDestinationsStore());
const { previousTransactionAddress } = storeToRefs(usePreferencesStore());
const { status, error, transactionHashes, commitTransaction } = useTransaction(() =>
diff --git a/composables/useObservable.ts b/composables/useObservable.ts
index 8f6e664b..d7848e06 100644
--- a/composables/useObservable.ts
+++ b/composables/useObservable.ts
@@ -1,8 +1,8 @@
-type CallbackFunction = () => void;
-class Observable {
- private subscribers: CallbackFunction[] = [];
+type CallbackFunction = (param: T) => void;
+class Observable {
+ private subscribers: CallbackFunction[] = [];
- public subscribe(callback: CallbackFunction) {
+ public subscribe(callback: CallbackFunction) {
this.subscribers.push(callback);
const unsubscribe = () => {
this.unsubscribe(callback);
@@ -10,22 +10,22 @@ class Observable {
return unsubscribe;
}
- public unsubscribe(callback: CallbackFunction) {
+ public unsubscribe(callback: CallbackFunction) {
const index = this.subscribers.indexOf(callback);
if (index !== -1) {
this.subscribers.splice(index, 1);
}
}
- public notify() {
+ public notify(param: T) {
this.subscribers.forEach((callback) => {
- callback();
+ callback(param);
});
}
}
-export default () => {
- const observable = new Observable();
+export default () => {
+ const observable = new Observable();
return {
subscribe: observable.subscribe.bind(observable),
diff --git a/pages/balances.vue b/pages/balances.vue
index ae14eab9..ed20b193 100644
--- a/pages/balances.vue
+++ b/pages/balances.vue
@@ -26,11 +26,15 @@
diff --git a/pages/index.vue b/pages/index.vue
index 8c054a91..b649bf50 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -59,16 +59,18 @@