Skip to content

Commit 79ebfdd

Browse files
committed
format: apply prettier to force-inclusion package
1 parent 203e75a commit 79ebfdd

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

packages/force-inclusion/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial runs the full cycle in a single command:
1111
1. **Deploy** a new Orbit rollup with `maxTimeVariation.delaySeconds = 90` (instead of the default 24 hours)
1212
2. **Deposit** ETH via `Inbox.depositEth()` on the parent chain (goes into the delayed inbox)
1313
3. **Force include** the deposit by calling `SequencerInbox.forceInclusion()` after the delay window passes
14-
4. *(Optional)* **Start a fullnode** (no sequencer) to verify the deposit appears on the child chain
14+
4. _(Optional)_ **Start a fullnode** (no sequencer) to verify the deposit appears on the child chain
1515

1616
## Prerequisites
1717

@@ -29,18 +29,18 @@ cp .env-sample .env
2929

3030
Required variables:
3131

32-
| Variable | Description |
33-
|---|---|
32+
| Variable | Description |
33+
| ---------------------- | --------------------------------------------------------------- |
3434
| `DEPLOYER_PRIVATE_KEY` | Private key of the deployer (must have ETH on the parent chain) |
35-
| `PARENT_CHAIN_RPC` | RPC URL of the parent chain |
35+
| `PARENT_CHAIN_RPC` | RPC URL of the parent chain |
3636

3737
Optional variables:
3838

39-
| Variable | Description |
40-
|---|---|
41-
| `PARENT_CHAIN_ID` | Parent chain ID (defaults to Arbitrum Sepolia 421614) |
42-
| `BATCH_POSTER_PRIVATE_KEY` | Batch poster key (auto-generated if not set) |
43-
| `VALIDATOR_PRIVATE_KEY` | Validator key (auto-generated if not set) |
39+
| Variable | Description |
40+
| -------------------------- | ----------------------------------------------------- |
41+
| `PARENT_CHAIN_ID` | Parent chain ID (defaults to Arbitrum Sepolia 421614) |
42+
| `BATCH_POSTER_PRIVATE_KEY` | Batch poster key (auto-generated if not set) |
43+
| `VALIDATOR_PRIVATE_KEY` | Validator key (auto-generated if not set) |
4444

4545
## Run
4646

packages/force-inclusion/scripts/force-inclusion-test.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async function forceInclude(childChainNetwork) {
302302
console.log(` TX: ${receipt.transactionHash}`);
303303

304304
// Verify totalDelayedMessagesRead
305-
305+
306306
const sequencerInbox = SequencerInbox__factory.connect(
307307
childChainNetwork.ethBridge.sequencerInbox,
308308
parentChainProvider,
@@ -340,16 +340,21 @@ async function verifyOnFullnode(nodeConfigPath) {
340340

341341
// Wait briefly then verify the container is still running
342342
await new Promise((r) => setTimeout(r, 3000));
343-
const running = execSync(
344-
`docker ps -q --filter id=${dockerContainerId}`,
345-
{ encoding: 'utf8' },
346-
).trim();
343+
const running = execSync(`docker ps -q --filter id=${dockerContainerId}`, {
344+
encoding: 'utf8',
345+
}).trim();
347346
if (!running) {
348347
console.error('Container exited immediately. Logs:');
349348
try {
350349
console.error(execSync(`docker logs ${dockerContainerId}`, { encoding: 'utf8' }));
351-
} catch (_) { /* ignore */ }
352-
try { execSync(`docker rm ${dockerContainerId}`, { encoding: 'utf8' }); } catch (_) { /* ignore */ }
350+
} catch (_) {
351+
/* ignore */
352+
}
353+
try {
354+
execSync(`docker rm ${dockerContainerId}`, { encoding: 'utf8' });
355+
} catch (_) {
356+
/* ignore */
357+
}
353358
return;
354359
}
355360

0 commit comments

Comments
 (0)