Skip to content

Commit

Permalink
Merge pull request #231 from skalenetwork/hotfix-chain-id-enforce
Browse files Browse the repository at this point in the history
Fix chainId in enforce network
  • Loading branch information
dmytrotkk authored Nov 14, 2023
2 parents aae8074 + 775c381 commit eaa7046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skalenetwork/metaport",
"version": "2.0.1",
"version": "2.0.2",
"description": "SKALE Metaport Widget",
"keywords": [
"skale",
Expand Down
2 changes: 1 addition & 1 deletion src/core/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export async function enforceNetwork(
skaleNetwork: SkaleNetwork,
chainName: string
): Promise<bigint> {
const currentChainId = walletClient.chain.id
const currentChainId = await walletClient.getChainId()
const { chainId } = await provider.getNetwork()
log(
`Current chainId: ${currentChainId}, required chainId: ${chainId}, required network: ${chainName} `
Expand Down

0 comments on commit eaa7046

Please sign in to comment.