File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
beacon-node/src/api/impl/beacon/blocks Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -202,10 +202,7 @@ function prettyAjvErrors(errors: ErrorObject[] | null | undefined): string {
202202type StringifiedProperty = string | StringifiedProperty [ ] | null | undefined ;
203203
204204function stringifyProperty ( value : unknown ) : StringifiedProperty {
205- if ( value === undefined || value === null || typeof value === "string" ) {
206- // Handle specifically null as `typeof null === "object"`
207- return value ;
208- } else if ( typeof value === "number" ) {
205+ if ( typeof value === "number" ) {
209206 return value . toString ( 10 ) ;
210207 } else if ( Array . isArray ( value ) ) {
211208 return value . map ( stringifyProperty ) ;
Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ export function getBeaconBlockApi({
406406 await publishBlock ( signedBlockOrContents , opts ) ;
407407 } ,
408408
409- async getBlobSidecars ( blockId , indices = [ ] ) {
409+ async getBlobSidecars ( blockId , indices ) {
410410 const { block, executionOptimistic} = await resolveBlockId ( chain , blockId ) ;
411411 const blockRoot = config . getForkTypes ( block . message . slot ) . BeaconBlock . hashTreeRoot ( block . message ) ;
412412
You can’t perform that action at this time.
0 commit comments