Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit d9a71cc

Browse files
committed
fix(wagmi): obtain chainId through request
1 parent b03da36 commit d9a71cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adapters/wagmi-connector/src/connector.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export function blocto({ appId }: BloctoParameters = {}) {
7474
},
7575
async getChainId() {
7676
const provider = await this.getProvider();
77-
const chainId =
78-
provider.chainId ??
79-
(await provider?.request({ method: 'eth_chainId' }));
77+
const chainId = await provider?.request({ method: 'eth_chainId' });
8078
return normalizeChainId(chainId);
8179
},
8280
async getProvider({ chainId } = {}) {

0 commit comments

Comments
 (0)