From fdee62ec74996254629ad677e4f1ba76bb49841a Mon Sep 17 00:00:00 2001 From: Emanuel Solis Date: Wed, 20 Nov 2024 08:16:03 -0500 Subject: [PATCH] style(imports): use default import of node:process pkg Use default import of node:process instead of only importing env method --- examples/eas-relayer-signer/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/eas-relayer-signer/src/index.ts b/examples/eas-relayer-signer/src/index.ts index ff92da6b..abcd954e 100644 --- a/examples/eas-relayer-signer/src/index.ts +++ b/examples/eas-relayer-signer/src/index.ts @@ -3,7 +3,7 @@ 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'; @@ -11,8 +11,8 @@ import { TypeDataSigner } from '@ethereum-attestation-service/eas-sdk/dist/offch 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 }), };