We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb819bb commit 6f68df9Copy full SHA for 6f68df9
apps/contract-verification/src/app/Verifiers/BlockscoutVerifier.ts
@@ -38,7 +38,8 @@ export class BlockscoutVerifier extends EtherscanVerifier {
38
const result: SourceFile[] = []
39
const filePrefix = `/${this.LOOKUP_STORE_DIR}/${chainId}/${contractAddress}`
40
41
- const targetFilePath = `${filePrefix}/${blockscoutSource.FileName.startsWith('..') ? '' : blockscoutSource.FileName}`
+ let targetFilePath
42
+ if (!blockscoutSource.FileName.startsWith('..')) targetFilePath = `${filePrefix}/${blockscoutSource.FileName}`
43
result.push({ content: blockscoutSource.SourceCode, path: targetFilePath })
44
45
for (const additional of blockscoutSource.AdditionalSources ?? []) {
0 commit comments