Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Jan 25, 2024
1 parent e933acb commit e2365f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/api/test/utils/checkAgainstSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ function prettyAjvErrors(errors: ErrorObject[] | null | undefined): string {
type StringifiedProperty = string | StringifiedProperty[] | null | undefined;

function stringifyProperty(value: unknown): StringifiedProperty {
if (value === undefined || value === null || typeof value === "string") {
// Handle specifically null as `typeof null === "object"`
return value;
} else if (typeof value === "number") {
if (typeof value === "number") {
return value.toString(10);
} else if (Array.isArray(value)) {
return value.map(stringifyProperty);
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/src/api/impl/beacon/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export function getBeaconBlockApi({
await publishBlock(signedBlockOrContents, opts);
},

async getBlobSidecars(blockId, indices = []) {
async getBlobSidecars(blockId, indices) {
const {block, executionOptimistic} = await resolveBlockId(chain, blockId);
const blockRoot = config.getForkTypes(block.message.slot).BeaconBlock.hashTreeRoot(block.message);

Expand Down

0 comments on commit e2365f5

Please sign in to comment.