Skip to content

Commit 126f7ee

Browse files
committed
watcher: update injective test
1 parent db73214 commit 126f7ee

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

watcher/src/watchers/__tests__/CosmwasmWatcher.test.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,18 @@ test('getFinalizedBlockNumber(injective)', async () => {
128128

129129
test('getMessagesForBlocks(injective)', async () => {
130130
const watcher = new InjectiveExplorerWatcher('mainnet');
131-
const vaasByBlock = await watcher.getMessagesForBlocks(56405501, 56405502);
131+
const vaasByBlock = await watcher.getMessagesForBlocks(61720293, 61720294);
132132
// const vaasByBlock = await watcher.getMessagesForBlocks(4209642, 4209643); // Testnet
133133
const entries = Object.entries(vaasByBlock);
134+
console.log(entries);
134135
expect(entries.length).toEqual(2);
135136
expect(entries.filter(([block, vaas]) => vaas.length === 0).length).toEqual(1);
136137
expect(entries.filter(([block, vaas]) => vaas.length === 1).length).toEqual(1);
137138
expect(entries.filter(([block, vaas]) => vaas.length === 2).length).toEqual(0);
138-
expect(vaasByBlock['56405501/2024-01-04T14:40:21.262Z']).toBeDefined();
139-
expect(vaasByBlock['56405501/2024-01-04T14:40:21.262Z'].length).toEqual(1);
140-
expect(vaasByBlock['56405501/2024-01-04T14:40:21.262Z'][0]).toEqual(
141-
'0x1ae70e98a0597ae9a1a5e1d9c48ede546e622b668c027d09e4147004a5b2c9e3:19/00000000000000000000000045dbea4617971d93188eda21530bc6503d153313/3737'
139+
expect(vaasByBlock['61720293/2024-02-26T21:06:12.205Z']).toBeDefined();
140+
expect(vaasByBlock['61720293/2024-02-26T21:06:12.205Z'].length).toEqual(1);
141+
expect(vaasByBlock['61720293/2024-02-26T21:06:12.205Z'][0]).toEqual(
142+
'0x2481ac7979d6ad78ef75906b66a7ce4c7580561740a5f8742fdb0a9dffa75171:19/00000000000000000000000045dbea4617971d93188eda21530bc6503d153313/7164'
142143
);
143144
});
144145

0 commit comments

Comments
 (0)