diff --git a/packages/contract/hardhat.config.ts b/packages/contract/hardhat.config.ts index cffdcb2..f141fd2 100644 --- a/packages/contract/hardhat.config.ts +++ b/packages/contract/hardhat.config.ts @@ -89,7 +89,6 @@ const config: HardhatUserConfig = { }, ], settings: { - viaIR: true, metadata: { // Not including the metadata hash // https://github.com/paulrberg/hardhat-template/issues/31 @@ -101,9 +100,7 @@ const config: HardhatUserConfig = { enabled: true, runs: 200, details: { - yulDetails: { - optimizerSteps: "u", - }, + yulDetails: false, }, }, }, diff --git a/packages/contract/scripts/address/hardhat/DonateToken.json b/packages/contract/scripts/address/hardhat/DonateToken.json new file mode 100644 index 0000000..9d3fc10 --- /dev/null +++ b/packages/contract/scripts/address/hardhat/DonateToken.json @@ -0,0 +1 @@ +{"main":"0x5FbDB2315678afecb367f032d93F642f64180aa3"} \ No newline at end of file diff --git a/packages/contract/scripts/address/opbnb-testnet/PoolFactory.json b/packages/contract/scripts/address/opbnb-testnet/PoolFactory.json new file mode 100644 index 0000000..f842cfb --- /dev/null +++ b/packages/contract/scripts/address/opbnb-testnet/PoolFactory.json @@ -0,0 +1 @@ +{"main":"0x4c139Bf8A74539e9fe322B8E7aF5b244910d3a2c"} \ No newline at end of file diff --git a/packages/contract/scripts/tasks/deployProcess.ts b/packages/contract/scripts/tasks/deployProcess.ts index 3ad2408..e1e4bec 100644 --- a/packages/contract/scripts/tasks/deployProcess.ts +++ b/packages/contract/scripts/tasks/deployProcess.ts @@ -67,20 +67,6 @@ task("deploy:nftFactory", "Deploy NFT factory") const [signer]: any = await hre.ethers.getSigners() const feeData = await hre.ethers.provider.getFeeData() - // const globalContractFactory = await hre.ethers.getContractFactory("contracts/Globals.sol:Globals", ) - // const globalDeployContract: any = await globalContractFactory.connect(signer).deploy({ - // maxPriorityFeePerGas: feeData.maxPriorityFeePerGas, - // maxFeePerGas: feeData.maxFeePerGas, - // // gasLimit: 6000000, // optional: for some weird infra network - // }) - // console.log(`Globals.sol deployed to ${globalDeployContract.address}`) - // await globalDeployContract.deployed() - - // const tokenAddress = JSON.parse(readFileSync( - // `scripts/address/${hre.network.name}/`, - // "DonateToken.json" - // )) - // const nftContractFactory = await hre.ethers.getContractFactory("contracts/PoolFactory.sol:PoolFactory", ) const nftContractFactory = await hre.ethers.getContractFactory("contracts/PoolFactory.sol:PoolFactory", ) const nftDeployContract: any = await nftContractFactory.connect(signer).deploy( //my wallet address @@ -100,22 +86,12 @@ task("deploy:nftFactory", "Deploy NFT factory") await nftDeployContract.deployed() if (verify) { - // console.log("verifying global contract...") - // await globalDeployContract.deployTransaction.wait(3) - // try { - // await hre.run("verify:verify", { - // address: globalDeployContract.address, - // contract: "contracts/Globals.sol:Globals", - // }) - // } catch (e) { - // console.log(e) - // } console.log("verifying nft contract...") await nftDeployContract.deployTransaction.wait(3) try { await hre.run("verify:verify", { address: nftDeployContract.address, - contract: "contracts/DonateToken.sol:DonateToken", + contract: "contracts/PoolFactory.sol:PoolFactory", }) } catch (e) { console.log(e)