Skip to content

Commit

Permalink
Fixed import reference for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
3Nigma committed Nov 24, 2022
1 parent a2c4b2c commit e7b456e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions test/general/specs/Contract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e7b456e

Please sign in to comment.