Skip to content

Commit

Permalink
Merge pull request NomicFoundation#1974 from nomiclabs/fix-imports-to…
Browse files Browse the repository at this point in the history
…-built-files

Fix multiple imports to the build instead of src/
  • Loading branch information
alcuadrado authored Oct 21, 2021
2 parents 9a9d299 + d7a1d80 commit b9e6b92
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from "chai";
import { zeroAddress } from "ethereumjs-util";

import { RpcBlockOutput } from "../../../../../../internal/hardhat-network/provider/output";
import { RpcBlockOutput } from "../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../utils/workaround-windows-ci-failures";
import {
assertInvalidArgumentsError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertQuantity } from "../../../../helpers/assertions";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import {
numberToRpcQuantity,
rpcDataToNumber,
rpcQuantityToNumber,
} from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { getCurrentTimestamp } from "../../../../../../../internal/hardhat-network/provider/utils/getCurrentTimestamp";
rpcDataToBN,
rpcQuantityToBN,
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { getCurrentTimestamp } from "../../../../../../../src/internal/hardhat-network/provider/utils/getCurrentTimestamp";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertInvalidInputError } from "../../../../helpers/assertions";
import {
Expand All @@ -26,10 +28,6 @@ import {
sendTxToZeroAddress,
} from "../../../../helpers/transactions";
import { compileLiteral } from "../../../../stack-traces/compilation";
import {
rpcDataToBN,
rpcQuantityToBN,
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";

describe("Eth module", function () {
PROVIDERS.forEach(({ name, useProvider, isFork }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {
FeeMarketEIP1559Transaction,
Transaction,
} from "@ethereumjs/tx";
import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import {
numberToRpcQuantity,
rpcQuantityToBN,
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertInvalidInputError } from "../../../../helpers/assertions";
import { EXAMPLE_CONTRACT } from "../../../../helpers/contracts";
Expand All @@ -20,7 +23,6 @@ import { retrieveForkBlockNumber } from "../../../../helpers/retrieveForkBlockNu
import { deployContract } from "../../../../helpers/transactions";
import { HardhatNode } from "../../../../../../../src/internal/hardhat-network/provider/node";
import { RpcBlockOutput } from "../../../../../../../src/internal/hardhat-network/provider/output";
import { rpcQuantityToBN } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";

describe("Eth module", function () {
PROVIDERS.forEach(({ name, useProvider, isFork }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { assert } from "chai";

import { COINBASE_ADDRESS } from "../../../../../../../internal/hardhat-network/provider/node";
import { COINBASE_ADDRESS } from "../../../../../../../src/internal/hardhat-network/provider/node";
import {
RpcBlockOutput,
RpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertQuantity } from "../../../../helpers/assertions";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {
numberToRpcQuantity,
rpcQuantityToBN,
rpcQuantityToNumber,
} from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { COINBASE_ADDRESS } from "../../../../../../../internal/hardhat-network/provider/node";
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { COINBASE_ADDRESS } from "../../../../../../../src/internal/hardhat-network/provider/node";
import {
RpcBlockOutput,
RpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertQuantity } from "../../../../helpers/assertions";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { assert } from "chai";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import {
RpcBlockOutput,
RpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertQuantity } from "../../../../helpers/assertions";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertQuantity } from "../../../../helpers/assertions";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert } from "chai";
import { zeroAddress } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { randomAddress } from "../../../../../../../internal/hardhat-network/provider/fork/random";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { randomAddress } from "../../../../../../../src/internal/hardhat-network/provider/fork/random";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { assertInvalidInputError } from "../../../../helpers/assertions";
import { EXAMPLE_CONTRACT } from "../../../../helpers/contracts";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assert } from "chai";
import {
numberToRpcQuantity,
rpcQuantityToNumber,
} from "../../../../../../../internal/core/jsonrpc/types/base-types";
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { EXAMPLE_CONTRACT } from "../../../../helpers/contracts";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assert } from "chai";
import {
numberToRpcQuantity,
rpcQuantityToNumber,
} from "../../../../../../../internal/core/jsonrpc/types/base-types";
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { EXAMPLE_CONTRACT } from "../../../../helpers/contracts";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { EXAMPLE_CONTRACT } from "../../../../helpers/contracts";
import { setCWD } from "../../../../helpers/cwd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { assert } from "chai";
import { BN, setLengthLeft, toBuffer, zeroAddress } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../internal/hardhat-network/provider/node-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../src/internal/hardhat-network/provider/node-types";
import {
AccessListEIP2930RpcTransactionOutput,
EIP1559RpcTransactionOutput,
LegacyRpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertAccessListTransaction,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { assert } from "chai";
import { BN, toBuffer, zeroAddress } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../internal/hardhat-network/provider/node-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../src/internal/hardhat-network/provider/node-types";
import {
EIP1559RpcTransactionOutput,
LegacyRpcTransactionOutput,
AccessListEIP2930RpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertAccessListTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import {
zeroAddress,
} from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../internal/hardhat-network/provider/node-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../src/internal/hardhat-network/provider/node-types";
import {
AccessListEIP2930RpcTransactionOutput,
EIP1559RpcTransactionOutput,
LegacyRpcTransactionOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertAccessListTransaction,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { zeroAddress } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { randomAddress } from "../../../../../../../internal/hardhat-network/provider/fork/random";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { randomAddress } from "../../../../../../../src/internal/hardhat-network/provider/fork/random";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertInvalidInputError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { assert } from "chai";
import { BN, bufferToHex, toBuffer } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../internal/hardhat-network/provider/node-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { TransactionParams } from "../../../../../../../src/internal/hardhat-network/provider/node-types";
import {
RpcBlockOutput,
RpcReceiptOutput,
} from "../../../../../../../internal/hardhat-network/provider/output";
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertQuantity,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";

import { COINBASE_ADDRESS } from "../../../../../../../internal/hardhat-network/provider/node";
import { COINBASE_ADDRESS } from "../../../../../../../src/internal/hardhat-network/provider/node";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertNotSupported,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from "chai";
import { zeroAddress } from "ethereumjs-util";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import { setCWD } from "../../../../helpers/cwd";
import { PROVIDERS } from "../../../../helpers/providers";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { BN, bufferToHex, toBuffer, zeroAddress } from "ethereumjs-util";
import {
numberToRpcQuantity,
rpcQuantityToNumber,
} from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { InvalidInputError } from "../../../../../../../internal/core/providers/errors";
rpcQuantityToBN,
} from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import { InvalidInputError } from "../../../../../../../src/internal/core/providers/errors";
import { workaroundWindowsCiFailures } from "../../../../../../utils/workaround-windows-ci-failures";
import {
assertInvalidInputError,
Expand All @@ -31,7 +32,6 @@ import {
EIP1559RpcTransactionOutput,
RpcBlockOutput,
} from "../../../../../../../src/internal/hardhat-network/provider/output";
import { rpcQuantityToBN } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";

describe("Eth module", function () {
PROVIDERS.forEach(({ name, useProvider, isFork, isJsonRpc }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assert } from "chai";
import { zeroAddress } from "ethereumjs-util";
import { ethers } from "ethers";

import { numberToRpcQuantity } from "../../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../../src/internal/core/jsonrpc/types/base-types";
import {
EthereumProvider,
EthSubscription,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";

import { numberToRpcQuantity } from "../../../../../../internal/core/jsonrpc/types/base-types";
import { numberToRpcQuantity } from "../../../../../../src/internal/core/jsonrpc/types/base-types";
import { workaroundWindowsCiFailures } from "../../../../../utils/workaround-windows-ci-failures";
import { setCWD } from "../../../helpers/cwd";
import {
Expand Down

0 comments on commit b9e6b92

Please sign in to comment.