Closed ray-themedium closed 1 year ago
If exist contracts what have same methods, it returns incorrect gas-reporter table.
$ ls contracts // same contract without contract name. MeToken.sol MyToken.sol
describe("gas reporter test.", async() => { it("---->", async () => { const signer = (await ethers.getSigners())[0]; const MyToken = await ethers.getContractFactory('MyToken', signer); const myToken = await upgrades.deployProxy( MyToken, [ethers.utils.parseEther('1000000'), signer.address], { initializer: "init", unsafeAllow: ["delegatecall"]} ) console.log(myToken.address); await myToken.print(); }); });
As-is) It's return MeToken report.
Fixed)
If exist contracts what have same methods, it returns incorrect gas-reporter table.
As-is) It's return MeToken report.
Fixed)