Skip to content

Commit 6ba3931

Browse files
author
foufrix
committed
Merge branch 'feat-add-trace-offer' of https://github.com/foufrix/ultralight into feat-add-trace-offer
2 parents fbc3a1d + a9f8eba commit 6ba3931

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import type { BeaconNetwork, HistoryNetwork, PortalNetwork, StateNetwork } from
3030
import type { GetEnrResult } from '../schema/types.js'
3131

3232

33-
3433
const methods = [
3534
// state
3635
'portal_stateAddEnr',

packages/portalnetwork/src/networks/network.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export abstract class BaseNetwork {
603603
* @param contentKeys content keys being offered as specified by the subnetwork
604604
* @param content content being offered
605605
*/
606-
public sendOffer = async (enr: ENR, contentKeys: Uint8Array[], content?: Uint8Array[]) => {
606+
public sendOffer = async (enr: ENR, contentKeys: Uint8Array[], content?: Uint8Array[]): Promise<BitArray | Uint8Array | undefined> => {
607607
let version
608608
try {
609609
version = await this.portal.highestCommonVersion(enr)
@@ -671,7 +671,7 @@ export abstract class BaseNetwork {
671671
}
672672
} else {
673673
for (const key of requestedKeys) {
674-
let value = Uint8Array.from([])
674+
let value: Uint8Array = Uint8Array.from([])
675675
try {
676676
value = hexToBytes((await this.get(key)) as PrefixedHexString)
677677
requestedData.push(value)

0 commit comments

Comments
 (0)