Merge branch 'develop' into feat/transaction-explorer

This commit is contained in:
Jefferson Mantovani
2025-10-24 15:43:58 -03:00
32 changed files with 260 additions and 365 deletions

View File

@@ -24,7 +24,7 @@ const user = useUser();
user.setSellerView(false);
// States
const { loadingLock, walletAddress, networkName } = user;
const { loadingLock, walletAddress, network } = user;
const flowStep = ref<Step>(Step.Search);
const participantID = ref<string>();
const sellerAddress = ref<Address>();
@@ -103,7 +103,7 @@ if (paramLockID) {
await checkForUnreleasedLocks();
});
watch(networkName, async () => {
watch(network, async () => {
if (walletAddress.value) await checkForUnreleasedLocks();
});
}

View File

@@ -16,7 +16,7 @@ import type { WalletTransaction } from "@/model/WalletTransaction";
import router from "@/router/index";
const user = useUser();
const { walletAddress, networkName, selectedToken } = user;
const { walletAddress, network, selectedToken } = user;
const loadingWithdraw = ref<boolean>(false);
const showAlert = ref<boolean>(false);
@@ -29,7 +29,9 @@ const callWithdraw = async (amount: string) => {
loadingWithdraw.value = true;
let withdraw;
try {
withdraw = await withdrawDeposit(amount, selectedToken.value);
withdraw = await withdrawDeposit(
amount,
network.value.tokens[selectedToken.value].address);
} catch {
loadingWithdraw.value = false;
}
@@ -79,7 +81,7 @@ watch(walletAddress, async () => {
await getWalletTransactions();
});
watch(networkName, async () => {
watch(network, async () => {
await getWalletTransactions();
});
</script>