Skip to content

Commit 7405ba5

Browse files
author
Josh Long
committed
test: query validator info in epoch transition connection test
1 parent 6b5645b commit 7405ba5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/e2e-tests/src/tests/Epoch/EpochTransition.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
LitActionResource,
66
LitPKPResource,
77
} from '@lit-protocol/auth-helpers';
8+
import { LitContracts } from '@lit-protocol/contracts-sdk';
89
import { getPkpSessionSigs, TinnyEnvironment } from '@lit-protocol/tinny';
910

1011
describe('Epoch Transition', () => {
@@ -115,6 +116,14 @@ describe('Epoch Transition', () => {
115116
});
116117
await devEnv.litNodeClient?.disconnect();
117118
await devEnv.litNodeClient?.connect();
119+
120+
const connnectionInfo = await LitContracts.getConnectionInfo({
121+
litNetwork: 'custom',
122+
networkContext: devEnv.litNodeClient?.config.contractContext,
123+
rpcUrl: devEnv.rpc,
124+
nodeProtocol: devEnv.litNodeClient?.config.nodeProtocol,
125+
});
126+
console.log(connnectionInfo);
118127
},
119128
60 * 60 * 1_000
120129
);

0 commit comments

Comments
 (0)