Skip to content

Commit 582c77d

Browse files
evgenikoclaude
andcommitted
cleanup: remove redundant VAA polling and unused imports
The executor status polling already reports delivery. VAA polling was redundant information adding ~15s of unnecessary wait time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c6aed65 commit 582c77d

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

e2e/sendToSolanaOnChainQuote.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { ethers } from 'ethers';
1717
import * as dotenv from 'dotenv';
1818
import { fileURLToPath } from 'url';
1919
import { dirname, join } from 'path';
20-
import { pollForVAA } from './utils.js';
2120
import { pollForExecutorStatus } from './executor.js';
2221

2322
const __filename = fileURLToPath(import.meta.url);
@@ -38,7 +37,6 @@ if (!HELLO_WORMHOLE_OC) {
3837

3938
// Wormhole chain IDs — full reference: https://docs.wormhole.com/products/reference/chain-ids/
4039
const CHAIN_ID_SOLANA = 1;
41-
const CHAIN_ID_SEPOLIA = 10002;
4240

4341
// On-chain quoter address (operated by Wormhole)
4442
const QUOTER_ADDRESS = process.env.QUOTER_ADDRESS
@@ -133,21 +131,6 @@ async function main() {
133131
} catch {}
134132
}
135133

136-
// Poll for VAA
137-
const vaaData = await pollForVAA(
138-
CHAIN_ID_SEPOLIA,
139-
HELLO_WORMHOLE_OC,
140-
Number(vaaSequence ?? 0),
141-
'Testnet',
142-
120000,
143-
);
144-
145-
if (vaaData) {
146-
console.log('\nVAA signed!');
147-
} else {
148-
console.log('\nVAA not signed within timeout');
149-
}
150-
151134
// Poll executor status
152135
const executorStatus = await pollForExecutorStatus(
153136
'Sepolia',

0 commit comments

Comments
 (0)