Skip to content

Commit b0dd51c

Browse files
improve types in etherscan-util.ts
1 parent f92ebe8 commit b0dd51c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/lib-sourcify/src/utils/etherscan/etherscan-util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,16 @@ export const fetchFromEtherscan = async (
209209
maskedUrl,
210210
chainId,
211211
address,
212-
status: (response as any).status,
212+
status: response.status,
213213
response: JSON.stringify(response),
214214
});
215215
throw new EtherscanImportError({
216216
code: 'etherscan_http_error',
217-
status: (response as any).status,
217+
status: response.status,
218218
});
219219
}
220220

221-
const resultJson: any = await (response as any).json();
221+
const resultJson = await response.json();
222222

223223
if (
224224
resultJson.message === 'NOTOK' &&

0 commit comments

Comments
 (0)