From 0be3c031d51790afc557047cda83288ac56d3041 Mon Sep 17 00:00:00 2001 From: bbenligiray Date: Thu, 14 Sep 2023 16:50:47 +0300 Subject: [PATCH] Fix Beacon set ID derivation --- scripts/update-example-beacon-set.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/update-example-beacon-set.js b/scripts/update-example-beacon-set.js index 1a86182f..5ad40618 100644 --- a/scripts/update-example-beacon-set.js +++ b/scripts/update-example-beacon-set.js @@ -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(