Skip to content

Commit

Permalink
Change chain id const name (#515)
Browse files Browse the repository at this point in the history
* Update chainId const name

* Update web3-utils to 1.4.7
  • Loading branch information
Ben-Rey committed Dec 29, 2023
1 parent 1cf1e51 commit 9c3a8e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion packages/web3-utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;

0 comments on commit 9c3a8e6

Please sign in to comment.