removed inappropiate wait; moar type checks
This commit is contained in:
parent
23163be99d
commit
4af059f6b7
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user