Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Apr 16, 2024
1 parent 223e060 commit c756d86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/objects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ The merkle root of the outgoing messages back to the data availability (DA) laye

`eventInboxRoot`: [`Bytes32!`](/docs/reference/scalars/#bytes32)

The merkle root of the incoming events from the data availability (DA) layer to Fuel, where the tree inputs are the hashes of these events.
The merkle root of the incoming events from the data availability (DA) layer to Fuel, where the tree inputs are the hashes of these events.

`height`: [`U32!`](/docs/reference/scalars/#u32)

Expand Down
10 changes: 8 additions & 2 deletions src/lib/code-examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ function extractLines(
} else {
end = lines.length;
}
return lines.slice(start - 1, end).join('\n').replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`);
return lines
.slice(start - 1, end)
.join('\n')
.replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`);
}

function getLineOffsets(str: string) {
Expand Down Expand Up @@ -64,7 +67,10 @@ function extractTestCase(source: string, testCase: string) {
if (val && val === testCase) {
const body = args[1]?.body;
content = chars.slice(body.start, body.end).join('').slice(1, -1);
content = prettier.format(content, { parser: 'babel' }).trimEnd().replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`);
content = prettier
.format(content, { parser: 'babel' })
.trimEnd()
.replaceAll('TESTNET_ENDPOINT', `'${TESTNET_ENDPOINT}'`);
charStart = body.start;
charEnd = body.end;
}
Expand Down

0 comments on commit c756d86

Please sign in to comment.