From d6ce625e59e13c3666a0745003b7a134f6211fc2 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Mon, 11 Dec 2023 16:52:39 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- .github/workflows/checks.yml | 2 +- README.md | 2 +- test/Create2Deployer.test.ts | 16 ++++------------ 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0209abbf..2167609b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -91,5 +91,5 @@ jobs: - name: Validate URLs run: | - awesome_bot ./*.md contracts/*.sol --request-delay 0.4 \ + awesome_bot ./*.md contracts/**/*.sol --request-delay 0.4 \ --white-list https://hardhat.org,https://explorer.autobahn.network,https://testnet.autobahn-explorer.com,https://rinkeby.etherscan.io,https://ropsten.etherscan.io,https://kovan.etherscan.io,https://kovan-optimistic.etherscan.io,https://hyperspace.filfox.info,https://testnet.hecoinfo.com diff --git a/README.md b/README.md index 72bb7111..658c5049 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # `CREATE2` Deployer -[![Test smart contracts](https://github.com/pcaversaccio/create2deployer/actions/workflows/test-contracts.yml/badge.svg)](https://github.com/pcaversaccio/create2deployer/actions/workflows/test-contracts.yml) +[![🕵️‍♂️ Test smart contracts](https://github.com/pcaversaccio/create2deployer/actions/workflows/test-contracts.yml/badge.svg)](https://github.com/pcaversaccio/create2deployer/actions/workflows/test-contracts.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/license/mit/) Helper smart contract to make easier and safer usage of the [`CREATE2`](https://eips.ethereum.org/EIPS/eip-1014) Ethereum Virtual Machine (EVM) opcode. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as _counterfactual interactions_. diff --git a/test/Create2Deployer.test.ts b/test/Create2Deployer.test.ts index 2abea4a0..56c6178f 100644 --- a/test/Create2Deployer.test.ts +++ b/test/Create2Deployer.test.ts @@ -125,16 +125,12 @@ describe("Create2Deployer", function () { it("fails deploying a contract in an existent address", async function () { await create2Deployer.deployERC1820Implementer(0, salt); await expect( - create2Deployer.deployERC1820Implementer(0, salt, { - from: deployerAccount, - }), + create2Deployer.deployERC1820Implementer(0, salt), ).to.be.revertedWith("Create2: Failed on deploy"); await create2Deployer.deploy(0, salt, creationBytecode.data); await expect( - create2Deployer.deploy(0, salt, creationBytecode.data, { - from: deployerAccount, - }), + create2Deployer.deploy(0, salt, creationBytecode.data), ).to.be.revertedWith("Create2: Failed on deploy"); }); @@ -324,16 +320,12 @@ describe("Create2DeployerDeprecated", function () { it("fails deploying a contract in an existent address", async function () { await create2DeployerDeprecated.deployERC1820Implementer(0, salt); await expect( - create2DeployerDeprecated.deployERC1820Implementer(0, salt, { - from: deployerAccount, - }), + create2DeployerDeprecated.deployERC1820Implementer(0, salt), ).to.be.revertedWith("Create2: Failed on deploy"); await create2DeployerDeprecated.deploy(0, salt, creationBytecode.data); await expect( - create2DeployerDeprecated.deploy(0, salt, creationBytecode.data, { - from: deployerAccount, - }), + create2DeployerDeprecated.deploy(0, salt, creationBytecode.data), ).to.be.revertedWith("Create2: Failed on deploy"); });