diff --git a/package-lock.json b/package-lock.json index b8e5c9a5..ddc4da18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11932,7 +11932,7 @@ }, "packages/web3-utils": { "name": "@massalabs/web3-utils", - "version": "1.4.6", + "version": "1.4.7", "license": "MIT", "dependencies": { "buffer": "^6.0.3", diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index 6c01a4af..9765f956 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -1,6 +1,6 @@ { "name": "@massalabs/web3-utils", - "version": "1.4.6", + "version": "1.4.7", "description": "Set of utilities shared between multiple @massalabs packages", "main": "dist/cmd/index.js", "module": "dist/esm/index.js", diff --git a/packages/web3-utils/src/constants.ts b/packages/web3-utils/src/constants.ts index d98bf06e..ed18cac4 100644 --- a/packages/web3-utils/src/constants.ts +++ b/packages/web3-utils/src/constants.ts @@ -52,7 +52,7 @@ export const CHAIN_ID_TO_NETWORK_NAME = { export type ChainId = keyof typeof CHAIN_ID_TO_NETWORK_NAME; // NETWORK_NAME_TO_CHAIN_ID mapping remains the same -export const NETWORK_NAME_TO_CHAIN_ID = { +export const CHAIN_ID = { [MAINNET]: MAINNET_CHAIN_ID, [BUILDNET]: BUILDNET_CHAIN_ID, [SECURENET]: SECURENET_CHAIN_ID, @@ -61,4 +61,4 @@ export const NETWORK_NAME_TO_CHAIN_ID = { } as const; // Define NetworkName type as the keys of NETWORK_NAME_TO_CHAIN_ID -export type NetworkName = keyof typeof NETWORK_NAME_TO_CHAIN_ID; +export type NetworkName = keyof typeof CHAIN_ID;