diff --git a/scripts/run-test-containers.sh b/scripts/run-test-containers.sh index f510cae7..e5ec5fa3 100755 --- a/scripts/run-test-containers.sh +++ b/scripts/run-test-containers.sh @@ -54,7 +54,7 @@ gen_sgx_key() { } deploy_test_contract() { - cd tests/contract-sample/ + cd tests/tester-contract/ yarn install npx hardhat run --network localhost scripts/deploy.ts cd - diff --git a/tests/contract-sample/.env.example b/tests/tester-contract/.env.example similarity index 100% rename from tests/contract-sample/.env.example rename to tests/tester-contract/.env.example diff --git a/tests/contract-sample/.eslintignore b/tests/tester-contract/.eslintignore similarity index 100% rename from tests/contract-sample/.eslintignore rename to tests/tester-contract/.eslintignore diff --git a/tests/contract-sample/.eslintrc.js b/tests/tester-contract/.eslintrc.js similarity index 100% rename from tests/contract-sample/.eslintrc.js rename to tests/tester-contract/.eslintrc.js diff --git a/tests/contract-sample/.npmignore b/tests/tester-contract/.npmignore similarity index 100% rename from tests/contract-sample/.npmignore rename to tests/tester-contract/.npmignore diff --git a/tests/contract-sample/.prettierignore b/tests/tester-contract/.prettierignore similarity index 100% rename from tests/contract-sample/.prettierignore rename to tests/tester-contract/.prettierignore diff --git a/tests/contract-sample/.solhint.json b/tests/tester-contract/.solhint.json similarity index 100% rename from tests/contract-sample/.solhint.json rename to tests/tester-contract/.solhint.json diff --git a/tests/contract-sample/.solhintignore b/tests/tester-contract/.solhintignore similarity index 100% rename from tests/contract-sample/.solhintignore rename to tests/tester-contract/.solhintignore diff --git a/tests/contract-sample/contracts/Tester.sol b/tests/tester-contract/contracts/Tester.sol similarity index 100% rename from tests/contract-sample/contracts/Tester.sol rename to tests/tester-contract/contracts/Tester.sol diff --git a/tests/contract-sample/hardhat.config.ts b/tests/tester-contract/hardhat.config.ts similarity index 87% rename from tests/contract-sample/hardhat.config.ts rename to tests/tester-contract/hardhat.config.ts index 2af1b32f..f9f41788 100644 --- a/tests/contract-sample/hardhat.config.ts +++ b/tests/tester-contract/hardhat.config.ts @@ -32,8 +32,6 @@ function getAccounts() { return accounts; } -// This is a sample Hardhat task. To learn how to create your own go to -// https://hardhat.org/guides/create-task.html task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { const accounts = await hre.ethers.getSigners(); @@ -42,9 +40,6 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { } }); -// You need to export an object to set up your config -// Go to https://hardhat.org/config/ to learn more - const config: HardhatUserConfig = { solidity: "0.8.4", networks: { diff --git a/tests/contract-sample/package.json b/tests/tester-contract/package.json similarity index 100% rename from tests/contract-sample/package.json rename to tests/tester-contract/package.json diff --git a/tests/contract-sample/scripts/deploy.ts b/tests/tester-contract/scripts/deploy.ts similarity index 100% rename from tests/contract-sample/scripts/deploy.ts rename to tests/tester-contract/scripts/deploy.ts diff --git a/tests/contract-sample/test/index.ts b/tests/tester-contract/test/index.ts similarity index 100% rename from tests/contract-sample/test/index.ts rename to tests/tester-contract/test/index.ts diff --git a/tests/contract-sample/tsconfig.json b/tests/tester-contract/tsconfig.json similarity index 100% rename from tests/contract-sample/tsconfig.json rename to tests/tester-contract/tsconfig.json diff --git a/tests/contract-sample/yarn.lock b/tests/tester-contract/yarn.lock similarity index 100% rename from tests/contract-sample/yarn.lock rename to tests/tester-contract/yarn.lock diff --git a/tests/utils/contracts.py b/tests/utils/contracts.py index 92cad431..8e6dd034 100644 --- a/tests/utils/contracts.py +++ b/tests/utils/contracts.py @@ -4,7 +4,7 @@ DIR_PATH = Path(os.path.realpath(__file__)).parents[2].absolute() -TESTER_CONTRACT_PATH = os.path.join(DIR_PATH, 'tests', 'contract-sample', 'abi.json') +TESTER_CONTRACT_PATH = os.path.join(DIR_PATH, 'tests', 'tester-contract', 'abi.json') def get_tester_abi():