File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ const configBase = {
1919configBase . accounts = [ ]
2020
2121if ( process . env . PROVIDER_KEYFILE ) {
22- const str = fs . readFileSync ( process . env . PROVIDER_KEYFILE ) . toString ( )
23- configBase . accounts = [ ethers . Wallet . fromEncryptedJsonSync ( str , process . env . PROVIDER_PASSWORD ) ]
22+ configBase . accounts = [
23+ ethers . Wallet . fromEncryptedJsonSync (
24+ process . env . PROVIDER_KEYFILE ,
25+ process . env . PROVIDER_PASSWORD ,
26+ ) ,
27+ ]
2428}
2529
2630const config = configBase
Original file line number Diff line number Diff line change 11{
22 "name" : " node-ts" ,
3- "version" : " 3.0.20 " ,
3+ "version" : " 3.0.21 " ,
44 "description" : " Nevermined Node" ,
55 "main" : " main.ts" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class ConfigService {
154154 this . envConfig = this . validateInput ( configProfile )
155155 this . crypto = {
156156 provider_password : this . get ( 'PROVIDER_PASSWORD' ) || '' ,
157- provider_key : readFileSync ( this . get ( 'PROVIDER_KEYFILE' ) || '' ) . toString ( ) ,
157+ provider_key : this . get ( 'PROVIDER_KEYFILE' ) || '' ,
158158 provider_rsa_public : readFileSync ( this . get ( 'RSA_PUBKEY_FILE' ) || '' ) . toString ( ) ,
159159 provider_rsa_private : readFileSync ( this . get ( 'RSA_PRIVKEY_FILE' ) || '' ) . toString ( ) ,
160160 }
You can’t perform that action at this time.
0 commit comments