@vlayer/react 0.1.0-nightly-20250114-6d34e7b → 0.1.0-nightly-20250115-c8efb66

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlayer/react",
3
- "version": "0.1.0-nightly-20250114-6d34e7b",
3
+ "version": "0.1.0-nightly-20250115-c8efb66",
4
4
  "exports": {
5
5
  ".": "./src/index.ts"
6
6
  },
package/src/defaults.ts CHANGED
@@ -19,4 +19,4 @@ export const DEFAULT_CONFIG = {
19
19
  },
20
20
  };
21
21
 
22
- export const DEFAULT_CONFIG_ENV = ProofEnv.DEV;
22
+ export const DEFAULT_CONFIG_ENV = ProofEnv.TESTNET;
@@ -1,5 +1,4 @@
1
1
  import { useState } from "react";
2
- import { useChainId } from "wagmi";
3
2
  import {
4
3
  type Abi,
5
4
  type AbiStateMutability,
@@ -8,6 +7,7 @@ import {
8
7
  } from "viem";
9
8
  import { type BrandedHash, type ProveArgs } from "@vlayer/sdk";
10
9
  import { useProofContext } from "../context";
10
+ import { useChainId } from "wagmi";
11
11
 
12
12
  export enum ProverStatus {
13
13
  Idle = "Idle",
@@ -17,10 +17,7 @@ export enum ProverStatus {
17
17
  }
18
18
 
19
19
  export const useCallProver = (
20
- proveArgs: Omit<
21
- ProveArgs<Abi, ContractFunctionName<Abi>>,
22
- "chainId" | "args"
23
- >,
20
+ proveArgs: Omit<ProveArgs<Abi, ContractFunctionName<Abi>>, "args">,
24
21
  ) => {
25
22
  // read vlayer client from context
26
23
  const { vlayerClient } = useProofContext();