Skip to content

Commit 10dcadf

Browse files
author
ScottyPoi
committed
RPC: update payload type to allow undefined
1 parent e166c01 commit 10dcadf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cli/src/rpc/modules/portal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)