@pyratzlabs/react-fhevm-utils 3.4.5 → 3.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ interface Props {
3
3
  wrapper: Address;
4
4
  }
5
5
  export declare const useFinalizeUnwrap: ({ wrapper }: Props) => {
6
- finalizeUnwrap: (requestId: bigint, clearValues: Address, decryptionProof: Address) => void;
6
+ finalizeUnwrap: (requestId: Address, clearValues: bigint, decryptionProof: Address) => void;
7
7
  isFailed: boolean;
8
8
  isLoading: boolean;
9
9
  isSuccess: boolean;
@@ -8,7 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { useConfig, useWaitForTransactionReceipt, useWriteContract, } from "wagmi";
11
- import { simulateContract } from "@wagmi/core";
12
11
  export const usePerformTransaction = ({ abi, address, functionName, }) => {
13
12
  const config = useConfig();
14
13
  const { writeContract, data: writeContractData, isError: isWriteError, error, } = useWriteContract();
@@ -16,14 +15,14 @@ export const usePerformTransaction = ({ abi, address, functionName, }) => {
16
15
  hash: writeContractData,
17
16
  });
18
17
  const perform = (_a) => __awaiter(void 0, [_a], void 0, function* ({ args, value, }) {
19
- const result = yield simulateContract(config, {
18
+ // const result = await simulateContract(config, );
19
+ writeContract({
20
20
  address,
21
21
  abi: abi,
22
22
  functionName,
23
23
  value,
24
24
  args: args,
25
25
  });
26
- writeContract(result.request);
27
26
  });
28
27
  return {
29
28
  data,