Skip to content

Commit

Permalink
♻️ Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Dec 11, 2023
1 parent 1d6b05d commit d6ce625
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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_.
Expand Down
16 changes: 4 additions & 12 deletions test/Create2Deployer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down Expand Up @@ -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");
});

Expand Down

0 comments on commit d6ce625

Please sign in to comment.