From 11c904ab82b2a99c9c3ff4d77919e0eb7ef32cde Mon Sep 17 00:00:00 2001 From: Matej Poklemba Date: Fri, 4 Oct 2024 11:10:40 +0200 Subject: [PATCH] Reduce diff --- src/beacons.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/beacons.ts b/src/beacons.ts index 1a3538c..25883ac 100644 --- a/src/beacons.ts +++ b/src/beacons.ts @@ -12,9 +12,9 @@ import { API3_SIGNED_API_BASE_URL, NODARY_SIGNED_API_BASE_URL } from './constant import { logger } from './logger'; export interface Beacon { - airnodeAddress: Hex; - templateId: Hex; - beaconId: Hex; + airnodeAddress: string; + templateId: string; + beaconId: string; } export type DataFeed = { @@ -239,8 +239,8 @@ export const encodeSignedDataForOevUpdate = (dataFeed: DataFeed, oevDataFeedValu ); }; -const deriveOevTemplateId = (templateId: Hex) => { - return ethers.solidityPackedKeccak256(['bytes32'], [templateId]) as Hex; +const deriveOevTemplateId = (templateId: string) => { + return ethers.solidityPackedKeccak256(['bytes32'], [templateId]); }; export const deriveOevDataFeeds = (dataFeeds: DataFeed[]) => {