Skip to content

Commit

Permalink
fix: config definition update
Browse files Browse the repository at this point in the history
  • Loading branch information
AvbrehtLuka committed Aug 20, 2024
1 parent d5c5c47 commit 9c648a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface IConfig {
export type EVMTransactionSources = "ETH" | "FLR" | "SGB";
export type IGetRPCSource = (source: EVMTransactionSources) => string;

function getRPCSource(source: EVMTransactionSources, config: IConfig): string {
function getRPCSource(source: EVMTransactionSources): string {
switch (source) {
case "ETH":
return process.env.RPC_ETH || "https://flare-api.flare.network/ext/C/rpc";
Expand All @@ -31,7 +31,7 @@ export default () => {
const config: IConfig = {
port: parseInt(process.env.PORT || "3000"),
api_keys,
getRPCSource: (source: EVMTransactionSources) => getRPCSource(source, config),
getRPCSource: (source: EVMTransactionSources) => getRPCSource(source),
isTestnet,
};
return config;
Expand Down

0 comments on commit 9c648a5

Please sign in to comment.