Skip to content

Commit

Permalink
Merge branch 'lyka/enable-mainnet' of github.com:WavesHQ/metascan int…
Browse files Browse the repository at this point in the history
…o lyka/enable-mainnet
  • Loading branch information
lykalabrada committed Nov 16, 2023
2 parents bff3e52 + eff6a44 commit eaac409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/faucet/DefaultNetworkInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class DefaultNetworkInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler) {
const request = context.switchToHttp().getRequest();
const { network } = request.query;
const { networks } = getEnvironment(process.env.NODE_ENV);
const { networks } = getEnvironment(process.env.NODE_ENV || 'production');

if (!network || !networks.includes(network)) {
request.query.network = EnvironmentNetwork.MainNet; // Set your default network here
Expand Down

0 comments on commit eaac409

Please sign in to comment.