File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
packages/lib-sourcify/src
services/server/test/helpers Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,14 @@ import { OutputError } from '@ethereum-sourcify/compilers-types';
2
2
import { CompilationErrorCode } from './Compilation/CompilationTypes' ;
3
3
import { ValidationErrorCode } from './Validation/ValidationTypes' ;
4
4
import { VerificationErrorCode } from './Verification/VerificationTypes' ;
5
- import { EtherscanImportErrorCode } from './utils/etherscan/EtherscanTypes' ;
6
5
7
6
export type SourcifyLibErrorCode =
8
7
| ValidationErrorCode
9
8
| CompilationErrorCode
10
- | VerificationErrorCode
11
- | EtherscanImportErrorCode ;
9
+ | VerificationErrorCode ;
12
10
13
11
interface SourcifyLibErrorDataRequired {
14
- chainId : string | number ;
12
+ chainId : string ;
15
13
address : string ;
16
14
missingSources : string [ ] ;
17
15
invalidSources : string [ ] ;
Original file line number Diff line number Diff line change 1
1
import nock from "nock" ;
2
- import { assert } from "chai" ;
3
2
import { SourcifyChain } from "@ethereum-sourcify/lib-sourcify" ;
4
3
5
4
export const mockEtherscanApi = (
@@ -9,7 +8,9 @@ export const mockEtherscanApi = (
9
8
userApiKey ?: string ,
10
9
) : nock . Scope => {
11
10
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
+ ) ;
13
14
}
14
15
const apiKey =
15
16
userApiKey !== undefined
You can’t perform that action at this time.
0 commit comments