removed inappropiate wait; moar type checks

This commit is contained in:
hueso 2025-07-04 21:11:33 -03:00
parent 23163be99d
commit 4af059f6b7
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import {
stringToHex, stringToHex,
toBytes, toBytes,
type Address, type Address,
type TransactionReceipt,
} from "viem"; } from "viem";
import type { TokenEnum } from "@/model/NetworkEnum"; import type { TokenEnum } from "@/model/NetworkEnum";
@ -71,7 +72,7 @@ export const releaseLock = async (
lockID: bigint, lockID: bigint,
pixTimestamp: `0x${string}`&{lenght:34}, pixTimestamp: `0x${string}`&{lenght:34},
signature: `0x${string}` signature: `0x${string}`
): Promise<any> => { ): Promise<TransactionReceipt> => {
const { address, abi, wallet, client, account } = await getContract(); const { address, abi, wallet, client, account } = await getContract();
if (!wallet) { if (!wallet) {

View File

@ -68,7 +68,6 @@ const releaseTransaction = async (params: {
loadingRelease.value = true; loadingRelease.value = true;
const release = await releaseLock(BigInt(lockID.value), params.pixTimestamp, params.signature); const release = await releaseLock(BigInt(lockID.value), params.pixTimestamp, params.signature);
await release.wait();
await updateWalletStatus(); await updateWalletStatus();
loadingRelease.value = false; loadingRelease.value = false;