removed inappropiate wait; moar type checks
This commit is contained in:
parent
23163be99d
commit
4af059f6b7
@ -10,6 +10,7 @@ import {
|
||||
stringToHex,
|
||||
toBytes,
|
||||
type Address,
|
||||
type TransactionReceipt,
|
||||
} from "viem";
|
||||
import type { TokenEnum } from "@/model/NetworkEnum";
|
||||
|
||||
@ -71,7 +72,7 @@ export const releaseLock = async (
|
||||
lockID: bigint,
|
||||
pixTimestamp: `0x${string}`&{lenght:34},
|
||||
signature: `0x${string}`
|
||||
): Promise<any> => {
|
||||
): Promise<TransactionReceipt> => {
|
||||
const { address, abi, wallet, client, account } = await getContract();
|
||||
|
||||
if (!wallet) {
|
||||
|
@ -68,7 +68,6 @@ const releaseTransaction = async (params: {
|
||||
loadingRelease.value = true;
|
||||
|
||||
const release = await releaseLock(BigInt(lockID.value), params.pixTimestamp, params.signature);
|
||||
await release.wait();
|
||||
|
||||
await updateWalletStatus();
|
||||
loadingRelease.value = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user