Skip to content

Commit

Permalink
chore: fix preetier
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Waske <[email protected]>
  • Loading branch information
GHkrishna committed Jul 17, 2024
1 parent b4f327f commit 5c940ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cliAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export type RestMultiTenantAgentModules = Awaited<ReturnType<typeof getWithTenan
export type RestAgentModules = Awaited<ReturnType<typeof getModules>>

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
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 41 in src/utils/agent.ts

View workflow job for this annotation

GitHub Actions / Validate

'BCOVRIN_TEST_GENESIS' is assigned a value but never used
const logger = new TsLogger(LogLevel.debug)

const config: InitConfig = {
Expand All @@ -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,
},
],
Expand Down

0 comments on commit 5c940ac

Please sign in to comment.