Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Dec 6, 2024
1 parent 2df5805 commit e599e83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/portalnetwork/test/integration/beacon.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})

0 comments on commit e599e83

Please sign in to comment.