diff --git a/packages/portalnetwork/test/integration/beacon.spec.ts b/packages/portalnetwork/test/integration/beacon.spec.ts index 68356c65c..af3074397 100644 --- a/packages/portalnetwork/test/integration/beacon.spec.ts +++ b/packages/portalnetwork/test/integration/beacon.spec.ts @@ -448,7 +448,7 @@ describe('OFFER/ACCEPT tests', () => { hexToBytes(optimisticUpdate.content_value), ) - const acceptedOffers = await network1.sendOffer(network2.enr.nodeId, [ + const acceptedOffers = await network1.sendOffer(network2.enr.toENR(), [ staleOptimisticUpdateContentKey, ]) assert.deepEqual(acceptedOffers, [], 'no content was accepted by node 2') @@ -512,7 +512,7 @@ describe('OFFER/ACCEPT tests', () => { ), ) - await network1.sendOffer(network2.enr.nodeId, [bootstrapKey]) + await network1.sendOffer(network2.enr.toENR(), [bootstrapKey]) await new Promise((resolve) => { network2.on('ContentAdded', (key: Uint8Array) => { diff --git a/packages/portalnetwork/test/integration/integration.spec.ts b/packages/portalnetwork/test/integration/integration.spec.ts index 1be6828e9..46ae2d5d4 100644 --- a/packages/portalnetwork/test/integration/integration.spec.ts +++ b/packages/portalnetwork/test/integration/integration.spec.ts @@ -321,7 +321,7 @@ describe('Offer/Accept', () => { const veryFarFakeContentKey = hexToBytes( '0x00' + generateRandomNodeIdAtDistance(node2.discv5.enr.nodeId, 256), ) - const res = await network1.sendOffer(node2.discv5.enr.nodeId, [veryFarFakeContentKey]) + const res = await network1.sendOffer(node2.discv5.enr.toENR(), [veryFarFakeContentKey]) assert.deepEqual(res, [], 'no accepts should be received') }) })