Skip to content

Commit

Permalink
style(imports): use default import of node:process pkg
Browse files Browse the repository at this point in the history
Use default import of node:process instead of only importing env method
  • Loading branch information
emnul committed Nov 20, 2024
1 parent c474644 commit fdee62e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/eas-relayer-signer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { EAS, NO_EXPIRATION, SchemaEncoder, TransactionSigner } from '@ethereum-
import dotenv from 'dotenv';
dotenv.config();
import { Agent } from 'node:https';
import { env } from 'node:process';
import process from 'node:process';

import { Defender, DefenderOptions } from '@openzeppelin/defender-sdk';
import { TypeDataSigner } from '@ethereum-attestation-service/eas-sdk/dist/offchain/typed-data-handler.js';

export const EASContractAddress = '0xC2679fBD37d54388Ce493F1DB75320D236e1815e'; // Sepolia v0.26

const creds = {
relayerApiKey: env.RELAYER_API_KEY,
relayerApiSecret: env.RELAYER_API_SECRET,
relayerApiKey: process.env.RELAYER_API_KEY,
relayerApiSecret: process.env.RELAYER_API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: new Agent({ keepAlive: true }),
};
Expand Down

0 comments on commit fdee62e

Please sign in to comment.