Skip to content

Commit

Permalink
fix: rpcProvider tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 14, 2022
1 parent f0a0d6c commit 4b0fd20
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions __tests__/rpcProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ describeIfRpc('RPCProvider', () => {

test('getChainId', async () => {
const chainId = await rpcProvider.getChainId();
expect(chainId).toBe(StarknetChainId.TESTNET2);
expect([StarknetChainId.TESTNET2, StarknetChainId.MAINNET, StarknetChainId.TESTNET]).toContain(
chainId
);
});

test('getPendingTransactions', async () => {
Expand Down Expand Up @@ -116,9 +118,9 @@ describeIfRpc('RPCProvider', () => {
});
});

test('getClass classHash 0x00808396477a4296946bf6574afb2e14723f8d9a37bba25a1e104315ca89b1f7', async () => {
test('getClass classHash 0x03fcbf77b28c96f4f2fb5bd2d176ab083a12a5e123adeb0de955d7ee228c9854', async () => {
const contractClass = await rpcProvider.getClass(
'0x00808396477a4296946bf6574afb2e14723f8d9a37bba25a1e104315ca89b1f7'
'0x03fcbf77b28c96f4f2fb5bd2d176ab083a12a5e123adeb0de955d7ee228c9854'
);
expect(contractClass).toHaveProperty('program');
expect(contractClass).toHaveProperty('entry_points_by_type');
Expand Down

0 comments on commit 4b0fd20

Please sign in to comment.