Skip to content

Commit

Permalink
Reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
matejos committed Oct 4, 2024
1 parent 0b3b725 commit 11c904a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/beacons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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[]) => {
Expand Down

0 comments on commit 11c904a

Please sign in to comment.