diff --git a/.changeset/curvy-onions-speak.md b/.changeset/curvy-onions-speak.md new file mode 100644 index 00000000..a6dfd709 --- /dev/null +++ b/.changeset/curvy-onions-speak.md @@ -0,0 +1,9 @@ +--- +'@blocto/connectkit-connector': patch +'@blocto/rainbowkit-connector': patch +'@blocto/web3-react-connector': patch +'@blocto/web3modal-connector': patch +'@blocto/wagmi-connector': patch +--- + +fix(wagmi): correct typo with chainId diff --git a/adapters/wagmi-connector/src/connector.ts b/adapters/wagmi-connector/src/connector.ts index 7cddfb36..37722078 100644 --- a/adapters/wagmi-connector/src/connector.ts +++ b/adapters/wagmi-connector/src/connector.ts @@ -139,7 +139,7 @@ class BloctoConnector extends Connector { const chain = this.chains.find((x) => x.id === chainId); const networks = await provider.supportChainList(); const evmSupportMap = networks.reduce( - (a: any, v: any) => ({ ...a, [v.chain_id]: v }), + (a: any, v: any) => ({ ...a, [v.chainId]: v }), {} ); const isBloctoSupportChain = evmSupportMap[`${chainId}`];