Skip to content

Commit

Permalink
Fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Oct 25, 2023
1 parent f0d6b5b commit ef35e8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ describe('portal network spec test vectors', () => {
)
})

const finalityUpdate = hexToBytes(specTestVectors.finalityUpdate['6718463'].content_value)
const finalityUpdateKey = hexToBytes(specTestVectors.finalityUpdate['6718463'].content_key).slice(
const finalityUpdate = hexToBytes(specTestVectors.finalityUpdate['6718368'].content_value)
const finalityUpdateKey = hexToBytes(specTestVectors.finalityUpdate['6718368'].content_key).slice(
1,
)
const deserializedFinalityUpdate = ssz.capella.LightClientFinalityUpdate.deserialize(
Expand Down Expand Up @@ -171,7 +171,7 @@ describe('API tests', async () => {
})

it('stores and retrieves finality update', async () => {
const finalityUpdate = specTestVectors.finalityUpdate['6718463']
const finalityUpdate = specTestVectors.finalityUpdate['6718368']
await protocol.store(
BeaconLightClientNetworkContentType.LightClientFinalityUpdate,
finalityUpdate.content_key,
Expand Down
4 changes: 2 additions & 2 deletions packages/portalnetwork/test/subprotocols/beacon/types.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ describe('Beacon network type tests using portal network spec test vectors', ()
)
})

const finalityUpdate = hexToBytes(specTestVectors.finalityUpdate['6718463'].content_value)
const finalityUpdateKey = hexToBytes(specTestVectors.finalityUpdate['6718463'].content_key).slice(
const finalityUpdate = hexToBytes(specTestVectors.finalityUpdate['6718368'].content_value)
const finalityUpdateKey = hexToBytes(specTestVectors.finalityUpdate['6718368'].content_key).slice(
1,
)
const deserializedFinalityUpdate = ssz.capella.LightClientFinalityUpdate.deserialize(
Expand Down

0 comments on commit ef35e8c

Please sign in to comment.