Skip to content

Commit

Permalink
Update gas-prices.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Jan 9, 2025
1 parent ace32f2 commit 23f8561
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/gas-prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const handler = async (
)
);
const getOriginChainFeeMarkups = (destinationChainId: number) => {
return Object.fromEntries(
const dictionary = Object.fromEntries(
Object.keys(chainIdsWithToken)
.map((originChainId) => {
const markup = getGasMarkup(destinationChainId, originChainId);
Expand All @@ -143,6 +143,10 @@ const handler = async (
})
.filter((x) => x !== undefined)
);
if (!Object.keys(dictionary).length) {
return undefined;
}
return dictionary;
};
const responseJson = {
reference: {
Expand Down

0 comments on commit 23f8561

Please sign in to comment.