File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -81,32 +81,17 @@ const LOCALNET_OPERATOR_ACCOUNT = '0.0.2'; // genesis account ID
8181
8282// Retrieves the private key from environment variables
8383export function getPrivateKeyEnv ( ) : string | null {
84- const privateKey = process . env . PRIVATE_KEY && process . env . PRIVATE_KEY !== ''
85- ? process . env . PRIVATE_KEY
86- : null ;
87-
88- console . log ( '[ENV] PRIVATE_KEY:' , privateKey ? '[SET]' : '[NOT SET]' ) ;
89- return privateKey ;
84+ return process . env . PRIVATE_KEY && process . env . PRIVATE_KEY !== '' ? process . env . PRIVATE_KEY : null ;
9085}
9186
9287// Retrieves the operator private key from environment variables
9388export function getOperatorKeyEnv ( ) : string {
94- const operatorKey = process . env . OPERATOR_KEY && process . env . OPERATOR_KEY !== ''
95- ? process . env . OPERATOR_KEY
96- : LOCALNET_OPERATOR_KEY ;
97-
98- console . log ( '[ENV] OPERATOR_KEY:' , process . env . OPERATOR_KEY ? '[FROM ENV]' : '[USING LOCALNET_OPERATOR_KEY]' ) ;
99- return operatorKey ;
89+ return process . env . OPERATOR_KEY && process . env . OPERATOR_KEY !== '' ? process . env . OPERATOR_KEY : LOCALNET_OPERATOR_KEY ;
10090}
10191
10292// Retrieves the network used from environment variables
10393export function getNetworkEnv ( ) : string {
104- const network = process . env . ENVIRONMENT && process . env . ENVIRONMENT !== ''
105- ? process . env . ENVIRONMENT
106- : 'LOCALNET' ;
107-
108- console . log ( '[ENV] ENVIRONMENT:' , network ) ;
109- return network ;
94+ return process . env . ENVIRONMENT && process . env . ENVIRONMENT !== '' ? process . env . ENVIRONMENT : 'LOCALNET' ;
11095}
11196
11297export async function setupEnvironmentForTransactions (
You can’t perform that action at this time.
0 commit comments