Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 22, 2024
1 parent ef9b8c1 commit 00d914a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checks/pragma-consistency.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ for (const artifact of artifacts) {
if (skip(source)) continue;
for (const { literals } of findAll('PragmaDirective', solcOutput.sources[source].ast)) {
// There should only be one.
pragma[source] = literals.slice(1).join('');
const [first, ...rest] = literals;
if (first === 'solidity') pragma[source] = rest.join('');
}
}

Expand Down

0 comments on commit 00d914a

Please sign in to comment.