Skip to content

Commit

Permalink
Merge pull request #213 from morpho-org/dependabot/npm_and_yarn/wagmi…
Browse files Browse the repository at this point in the history
…/core-2.16.1

build(deps-dev): bump @wagmi/core from 2.14.6 to 2.16.1
  • Loading branch information
Rubilmax authored Dec 24, 2024
2 parents 766a2d3 + 208e9a7 commit 1f07467
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
1 change: 0 additions & 1 deletion packages/blue-sdk-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"@testing-library/react": "^16.0.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@wagmi/core": "^2.14.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.7.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/blue-sdk-wagmi/src/hooks/useChainId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ChainUtils } from "@morpho-org/blue-sdk";
import type { ChainIdParameter } from "@wagmi/core/internal";
import { useMemo } from "react";
import {
type Config,
Expand All @@ -9,7 +8,9 @@ import {
import type { ConfigParameter } from "../types/index.js";

export type UseChainIdParameters<config extends Config = Config> =
ChainIdParameter<config> & ConfigParameter<config>;
ConfigParameter<config> & {
chainId?: config["chains"][number]["id"];
};

export function useChainId<config extends Config = ResolvedRegister["config"]>(
parameters?: UseChainIdParameters<config>,
Expand Down
2 changes: 1 addition & 1 deletion packages/test-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/node": "^22.10.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@wagmi/core": "^2.14.6",
"@wagmi/core": "^2.16.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.7.2",
Expand Down
44 changes: 34 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f07467

Please sign in to comment.