diff --git a/src/cliAgent.ts b/src/cliAgent.ts index c3d8793c..74c91c31 100644 --- a/src/cliAgent.ts +++ b/src/cliAgent.ts @@ -113,7 +113,6 @@ export type RestMultiTenantAgentModules = Awaited> const getModules = (networkConfig: [IndyVdrPoolConfig, ...IndyVdrPoolConfig[]]) => { - const didContractAddress = process.env.DID_CONTRACT_ADDRESS as string const schemaManagerContractAddress = process.env.SCHEMA_MANAGER_CONTRACT_ADDRESS as string const fileServerToken = process.env.FILE_SERVER_TOKEN @@ -296,7 +295,7 @@ export async function runRestAgent(restConfig: AriesRestConfig) { } else { networkConfig = [ { - genesisTransactions: (process.env.BCOVRIN_TEST_GENESIS) as string, + genesisTransactions: process.env.BCOVRIN_TEST_GENESIS as string, indyNamespace: 'bcovrin:testnet', isProduction: false, connectOnStartup: true, diff --git a/src/utils/agent.ts b/src/utils/agent.ts index ce83670c..198eb8bd 100644 --- a/src/utils/agent.ts +++ b/src/utils/agent.ts @@ -38,7 +38,7 @@ import { indyVdr } from '@hyperledger/indy-vdr-nodejs' import { TsLogger } from './logger' export const setupAgent = async ({ name, endpoints, port }: { name: string; endpoints: string[]; port: number }) => { - const BCOVRIN_TEST_GENESIS = (process.env.BCOVRIN_TEST_GENESIS) as string + const BCOVRIN_TEST_GENESIS = process.env.BCOVRIN_TEST_GENESIS as string const logger = new TsLogger(LogLevel.debug) const config: InitConfig = { @@ -62,7 +62,7 @@ export const setupAgent = async ({ name, endpoints, port }: { name: string; endp { isProduction: false, indyNamespace: 'bcovrin:test', - genesisTransactions: (process.env.BCOVRIN_TEST_GENESIS) as string, + genesisTransactions: process.env.BCOVRIN_TEST_GENESIS as string, connectOnStartup: true, }, ],