Skip to content

Commit

Permalink
Fix compile error from wrong rebase conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 20, 2023
1 parent eb922e0 commit 97b0c4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actions/test/run_local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ const main = async () => {
const provider = await getProvider(testRuntime.context, network);
const { chainId } = await provider.getNetwork();

// Provides a way to process a specific block p
const blockNumber = process.env.BLOCK_NUMBER;

const onNewBlock = async (blockNumber: number) => {
try {
processBlock(provider, blockNumber, chainId, testRuntime);
Expand All @@ -49,7 +46,9 @@ const main = async () => {
}
};

// Run one of the 2 Execution modes (single block, or watch mode)
if (process.env.BLOCK_NUMBER) {
// Execute once, for a specific block
const blockNumber = Number(process.env.BLOCK_NUMBER);
console.log(`[run_local] Processing specific block ${blockNumber}...`);
await onNewBlock(blockNumber).catch(console.error);
Expand Down

0 comments on commit 97b0c4d

Please sign in to comment.