Skip to content

Commit

Permalink
test: use Sepolia for getArbOsVersion test (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx authored Jul 9, 2024
1 parent 1bab5af commit 98b0d66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/getArbOSVersion.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { it, expect } from 'vitest';

import { getArbOSVersion } from './getArbOSVersion';
import { createPublicClient, http } from 'viem';
import { arbitrum, mainnet } from 'viem/chains';
import { arbitrum, sepolia } from 'viem/chains';

it('Returns the ArbOS version for arbitrum chain', async () => {
const arbProvider = createPublicClient({
Expand All @@ -13,9 +13,9 @@ it('Returns the ArbOS version for arbitrum chain', async () => {
});

it('Throws if the provider is not an Arbitrum provider', async () => {
const mainnetProvider = createPublicClient({
chain: mainnet,
const sepoliaProvider = createPublicClient({
chain: sepolia,
transport: http(),
});
await expect(getArbOSVersion(mainnetProvider)).rejects.toThrowError();
await expect(getArbOSVersion(sepoliaProvider)).rejects.toThrowError();
});

0 comments on commit 98b0d66

Please sign in to comment.