Skip to content

Commit

Permalink
chore: ID-1218 Updated testnet chainId
Browse files Browse the repository at this point in the history
haydenfowler authored Nov 20, 2023
1 parent 4eacaac commit d1cf107
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/passport/sdk/src/network/chains.ts
Original file line number Diff line number Diff line change
@@ -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,
5 changes: 3 additions & 2 deletions packages/passport/sdk/src/test/mocks.ts
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit d1cf107

Please sign in to comment.