File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
tendermint-rpc/src/rpcclients Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
135
135
for ( const source of args . init . map ( ( arg ) => arg . toString ( ) ) ) {
136
136
if ( args . debug ) console . info ( `Adding code from: '${ source } ' ...` ) ;
137
137
if ( source . startsWith ( "https://" ) ) {
138
- const response = await fetch ( source ) . then ( r => r . json ( ) ) ;
138
+ const response = await fetch ( source ) . then ( ( r ) => r . json ( ) ) ;
139
139
init += response + "\n" ;
140
140
} else {
141
141
init += fs . readFileSync ( source , "utf8" ) + "\n" ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class FaucetClient {
20
20
} ;
21
21
22
22
try {
23
- await fetch ( this . baseUrl + "/credit" , { method : "POST" , body : JSON . stringify ( body ) } ) ;
23
+ await fetch ( this . baseUrl + "/credit" , { method : "POST" , body : JSON . stringify ( body ) } ) ;
24
24
} catch ( error : any ) {
25
25
if ( error . response ) {
26
26
// append response body to error message
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ function filterBadStatus(res: any): any {
7
7
return res ;
8
8
}
9
9
10
-
11
10
/**
12
11
* Helper to work around missing CORS support in Tendermint (https://github.com/tendermint/tendermint/pull/2800)
13
12
*
You can’t perform that action at this time.
0 commit comments