Skip to content

Commit 16ab74c

Browse files
committed
scripts: rebase
1 parent d45a2b3 commit 16ab74c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

watcher/scripts/locateTxForMessage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const FIND_MSGS = [
309309
throw new Error('bigtable is undefined');
310310
}
311311
const instance = bt.bigtable.instance(bt.instanceId);
312-
const messageTable = instance.table(bt.tableId);
312+
const messageTable = instance.table(bt.msgTableId);
313313
try {
314314
const observedMessages = (
315315
await messageTable.getRows({ prefixes: ['00002/', '00004/', '00005/', '00006/'] })

watcher/scripts/reconstructVAA.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import axios from 'axios';
1313
import { AXIOS_CONFIG_JSON, RPCS_BY_CHAIN } from '../src/consts';
1414
import { LOG_MESSAGE_PUBLISHED_TOPIC, wormholeInterface } from '../src/watchers/EVMWatcher';
1515
import { Log } from '@ethersproject/abstract-provider';
16+
import { getEnvironment } from '@wormhole-foundation/wormhole-monitor-common';
1617

1718
const misses: { chain: ChainId; txHash: string }[] = [
1819
{ chain: 11, txHash: '0x14180a4b1b056c71d473348203976f5b250e1c7342abd1947fa7de79195a91d4' },
@@ -142,8 +143,9 @@ export function serializeVAA(vaa: VAA<Other>) {
142143
}
143144

144145
(async () => {
146+
const network = getEnvironment();
145147
for (const miss of misses) {
146-
const rpc = RPCS_BY_CHAIN[coalesceChainName(miss.chain)];
148+
const rpc = RPCS_BY_CHAIN[network][coalesceChainName(miss.chain)];
147149
if (!isEVMChain(miss.chain)) {
148150
console.error('unsupported chain (non EVM)', miss.chain);
149151
continue;

0 commit comments

Comments
 (0)