@@ -559,7 +559,7 @@ export class portal {
559559 return true
560560 }
561561 // portal_*Ping
562- async historyPing ( params : [ string , number , object ] ) {
562+ async historyPing ( params : [ string , number , object | undefined ] ) {
563563 const [ enr , ext , payload ] = params
564564 const encodedENR = ENR . decodeTxt ( enr )
565565 const extension = ext ?? 0
@@ -588,7 +588,7 @@ export class portal {
588588 return false
589589 }
590590 }
591- async statePing ( params : [ string , number , object ] ) {
591+ async statePing ( params : [ string , number , object | undefined ] ) {
592592 const [ enr , ext , payload ] = params
593593 const encodedENR = ENR . decodeTxt ( enr )
594594 const extension = ext ?? 0
@@ -613,7 +613,7 @@ export class portal {
613613 return false
614614 }
615615 }
616- async beaconPing ( params : [ string , number , object ] ) {
616+ async beaconPing ( params : [ string , number , object | undefined ] ) {
617617 const [ enr , ext , payload ] = params
618618 const encodedENR = ENR . decodeTxt ( enr )
619619 const extension = ext ?? 0
0 commit comments