Skip to content

Commit

Permalink
Adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beta-ziliani committed Jan 2, 2025
1 parent 482fa88 commit 45d7b65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/solidity/outputs/npm/tests/src/compilation/common.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export async function createBuilder(): Promise<CompilationBuilder> {
assert(importLiteral.endsWith('"') || importLiteral.endsWith('\''));

const importString = importLiteral.slice(1, -1);

// HACK: The source file might be buried in some structure a/b/c/d/file.sol
// in order to resolve its imports we allow ourselves to walk up the hierarchy
// until we find the proper root of the import.
let i = 0;
while (i < 5) {
let splat = Array(i + 1).fill("..");
Expand Down

0 comments on commit 45d7b65

Please sign in to comment.