Skip to content

Commit

Permalink
Merge pull request AmazingAng#692 from kongtaoxing/main
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingAng authored Mar 27, 2024
2 parents 5d6fabf + 6aa2af4 commit 82358eb
Show file tree
Hide file tree
Showing 10 changed files with 1,117 additions and 2,046 deletions.
8 changes: 4 additions & 4 deletions 25_Create2/create2test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ describe("create2 test", function () {
console.log("1.==> deploy pair");
const PairFactory = await ethers.getContractFactory("Pair");
const Pair = await PairFactory.deploy();
await Pair.deployed();
console.log("pair address =>",Pair.address);
await Pair.waitForDeployment();
console.log("pair address =>",Pair.target);

console.log();
console.log("2.==> deploy PairFactory2");
const PairFactory2Factory = await ethers.getContractFactory("PairFactory2");
const PairFactory2 = await PairFactory2Factory.deploy();
await PairFactory2.deployed();
console.log("PairFactory2 address =>",PairFactory2.address);
await PairFactory2.waitForDeployment();
console.log("PairFactory2 address =>",PairFactory2.target);

console.log("3.==> calculateAddr for wbnb people");
const WBNBAddress = "0x2c44b726ADF1963cA47Af88B284C06f30380fC78";
Expand Down
8 changes: 4 additions & 4 deletions Languages/en/25_Create2_en/create2test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ describe("create2 test", function () {
console.log("1.==> deploy pair");
const PairFactory = await ethers.getContractFactory("Pair");
const Pair = await PairFactory.deploy();
await Pair.deployed();
console.log("pair address =>",Pair.address);
await Pair.waitForDeployment();
console.log("pair address =>",Pair.target);

console.log();
console.log("2.==> deploy PairFactory2");
const PairFactory2Factory = await ethers.getContractFactory("PairFactory2");
const PairFactory2 = await PairFactory2Factory.deploy();
await PairFactory2.deployed();
console.log("PairFactory2 address =>",PairFactory2.address);
await PairFactory2.waitForDeployment();
console.log("PairFactory2 address =>",PairFactory2.target);

console.log("3.==> calculateAddr for wbnb people");
const WBNBAddress = "0x2c44b726ADF1963cA47Af88B284C06f30380fC78";
Expand Down
8 changes: 4 additions & 4 deletions Languages/pt-br/25_Create2/create2test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ describe("create2 test", function () {
console.log("1.==> implantar par")
const PairFactory = await ethers.getContractFactory("Pair");
const Pair = await PairFactory.deploy();
await Pair.deployed();
console.log("par endereço =>", Pair.address)
await Pair.waitForDeployment();
console.log("par endereço =>", Pair.target)

console.log()
console.log("2.==> implantar PairFactory2")
const PairFactory2Factory = await ethers.getContractFactory("PairFactory2");
const PairFactory2 = await PairFactory2Factory.deploy();
await PairFactory2.deployed();
console.log("Endereço do PairFactory2 =>", PairFactory2.address)
await PairFactory2.waitForDeployment();
console.log("Endereço do PairFactory2 =>", PairFactory2.target)

console.log("3.==> calcularEndereço para pessoas wbnb")
const WBNBAddress = "0x2c44b726ADF1963cA47Af88B284C06f30380fC78";
Expand Down
14 changes: 14 additions & 0 deletions Topics/Tools/TOOL06_Hardhat/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules
.env

# Hardhat files
/cache
/artifacts

# TypeChain files
/typechain
/typechain-types

# solidity-coverage files
/coverage
/coverage.json
2 changes: 1 addition & 1 deletion Topics/Tools/TOOL06_Hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
solidity: "0.8.21",
networks: {
goerli: {
url: "https://eth-goerli.g.alchemy.com/v2/API_KEY",
Expand Down
Loading

0 comments on commit 82358eb

Please sign in to comment.