Skip to content

Commit a216de3

Browse files
marcocastignolikuzdogan
authored andcommitted
small fixes
1 parent fd94b2b commit a216de3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/lib-sourcify/src/SourcifyLibError.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import { OutputError } from '@ethereum-sourcify/compilers-types';
22
import { CompilationErrorCode } from './Compilation/CompilationTypes';
33
import { ValidationErrorCode } from './Validation/ValidationTypes';
44
import { VerificationErrorCode } from './Verification/VerificationTypes';
5-
import { EtherscanImportErrorCode } from './utils/etherscan/EtherscanTypes';
65

76
export type SourcifyLibErrorCode =
87
| ValidationErrorCode
98
| CompilationErrorCode
10-
| VerificationErrorCode
11-
| EtherscanImportErrorCode;
9+
| VerificationErrorCode;
1210

1311
interface SourcifyLibErrorDataRequired {
14-
chainId: string | number;
12+
chainId: string;
1513
address: string;
1614
missingSources: string[];
1715
invalidSources: string[];

services/server/test/helpers/etherscanResponseMocks.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import nock from "nock";
2-
import { assert } from "chai";
32
import { SourcifyChain } from "@ethereum-sourcify/lib-sourcify";
43

54
export const mockEtherscanApi = (
@@ -9,7 +8,9 @@ export const mockEtherscanApi = (
98
userApiKey?: string,
109
): nock.Scope => {
1110
if (!sourcifyChain.etherscanApi?.supported) {
12-
assert.fail(`Etherscan for chain ${sourcifyChain.chainId} not configured`);
11+
chai.assert.fail(
12+
`Etherscan for chain ${sourcifyChain.chainId} not configured`,
13+
);
1314
}
1415
const apiKey =
1516
userApiKey !== undefined

0 commit comments

Comments
 (0)