diff --git a/test/general/contracts/import_resolution/lib/contract_b.sol b/test/general/contracts/import_resolution/lib/contract_b.sol index 53c21f1..ca25a84 100644 --- a/test/general/contracts/import_resolution/lib/contract_b.sol +++ b/test/general/contracts/import_resolution/lib/contract_b.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.0; -import "../../../solidity-by-example/contracts/hello_world.sol"; +import "../../../../solidity-by-example/contracts/hello_world.sol"; contract B { function greetB() public pure returns (string memory) { diff --git a/test/general/specs/Contract.spec.ts b/test/general/specs/Contract.spec.ts index bbee6ef..2405afb 100644 --- a/test/general/specs/Contract.spec.ts +++ b/test/general/specs/Contract.spec.ts @@ -2,7 +2,8 @@ import * as path from "path"; import { describe, expect, it } from "@jest/globals"; -import { CompileIssues, Contract } from "../../.."; +import { CompileIssues } from "../../../lib/errors/CompileIssues"; +import { Contract } from "../../../lib/static/upload/Contract"; import { read } from "../../utils"; const HELLO_IMPORTS_BYTECODE = read({ solo: "hello_imports" }).evm.bytecode @@ -116,7 +117,7 @@ describe("Contract", () => { ); }); - it("given a solidity contract code which doesn't have a license, extracting all the Contracts should succede if we don't care about compiler warnings", async () => { + it("given a solidity contract code which doesn't have a license, extracting all the Contracts should succeed if we don't care about compiler warnings", async () => { await Contract.allFrom({ code: read({ contract: "no_license_hello_world" }), ignoreWarnings: true,