Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fix Beacon set ID derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenligiray committed Sep 14, 2023
1 parent 797a0a8 commit 0be3c03
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/update-example-beacon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ async function main() {
const templateIds = Array(beaconCount)
.fill()
.map((_, ind) => ethers.utils.hexZeroPad(ethers.utils.hexlify(ind + 1), 32));
const beaconSetId = ethers.utils.solidityKeccak256(
['bytes32[]'],
[templateIds.map((templateId) => deriveBeaconId(airnodeWallet.address, templateId))]
const beaconSetId = ethers.utils.keccak256(
ethers.utils.defaultAbiCoder.encode(
['bytes32[]'],
[templateIds.map((templateId) => deriveBeaconId(airnodeWallet.address, templateId))]
)
);

const dataFeedReads = await api3ServerV1.callStatic.tryMulticall(
Expand Down

0 comments on commit 0be3c03

Please sign in to comment.