diff --git a/packages/passport/sdk/src/network/chains.ts b/packages/passport/sdk/src/network/chains.ts index 4fd7c9dbc3..7ad5161fdc 100644 --- a/packages/passport/sdk/src/network/chains.ts +++ b/packages/passport/sdk/src/network/chains.ts @@ -9,7 +9,7 @@ */ export enum ChainId { IMTBL_ZKEVM_MAINNET = 13371, - IMTBL_ZKEVM_TESTNET = 13472, + IMTBL_ZKEVM_TESTNET = 13473, IMTBL_ZKEVM_DEVNET = 13433, ETHEREUM = 1, SEPOLIA = 11155111, diff --git a/packages/passport/sdk/src/test/mocks.ts b/packages/passport/sdk/src/test/mocks.ts index 136d4628f9..0c384cc9c8 100644 --- a/packages/passport/sdk/src/test/mocks.ts +++ b/packages/passport/sdk/src/test/mocks.ts @@ -1,12 +1,13 @@ import { Environment, ImmutableConfiguration } from '@imtbl/config'; import { User, UserImx, UserZkEvm } from '../types'; import { PassportConfiguration } from '../config'; +import { ChainId } from '../network/chains'; export const mockErrorMessage = 'Server is down'; export const mockStarkSignature = 'starkSignature'; -export const chainId = 13472; -export const chainIdHex = '0x34a0'; +export const chainId = ChainId.IMTBL_ZKEVM_TESTNET; +export const chainIdHex = '0x34a1'; export const chainIdEip155 = `eip155:${chainId}`; const accessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1ZCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmMmgI_XiQiIkQ'; diff --git a/packages/passport/sdk/src/zkEvm/user/registerZkEvmUser.test.ts b/packages/passport/sdk/src/zkEvm/user/registerZkEvmUser.test.ts index bd72e3bf65..ff40043ace 100644 --- a/packages/passport/sdk/src/zkEvm/user/registerZkEvmUser.test.ts +++ b/packages/passport/sdk/src/zkEvm/user/registerZkEvmUser.test.ts @@ -3,7 +3,7 @@ import { JsonRpcProvider, Web3Provider } from '@ethersproject/providers'; import { signRaw } from '@imtbl/toolkit'; import { MultiRollupApiClients } from '@imtbl/generated-clients'; import { PassportConfiguration } from 'config'; -import { ChainName } from 'network/chains'; +import { ChainId, ChainName } from 'network/chains'; import { registerZkEvmUser } from './registerZkEvmUser'; import AuthManager from '../../authManager'; import { mockUser, mockUserZkEvm } from '../../test/mocks'; @@ -28,7 +28,7 @@ describe('registerZkEvmUser', () => { }; const jsonRPCProvider = { ready: { - chainId: 13472, + chainId: ChainId.IMTBL_ZKEVM_TESTNET, }, }; const ethereumAddress = '0x3082e7c88f1c8b4e24be4a75dee018ad362d84d4';