I have tried to verify my contract but it didn’t work and I dont know what I’m doing wrong. I have looked around on the internet but I didn’t find what I was doing wrong. Could you please verify my contract? or help me verify it?
This is my contract:
0x38fca9ddad403929858a4af5b4ebe9a7b6f7600f
Compiler version: 0.8.0
This is my code:
pragma solidity ^0.8.0;
import"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract KnolToken is ERC20 {
constructor(uint256 initialSupply) public ERC20("KnolToken", "KNLT"){
_mint(msg.sender,initialSupply);
}
}
Maybe the code on the main branch of the OpenZeppelin repo has updated, so when you try to flatten code, it will generate a different source code, so I think you can use the plugin I shared above to verify, cause the dependency at your local environment is correct.
I have tried to install truffle and hardhat but it doesn’t work. Could you help me download truffle or HardHat? If you can’t help me download truffle or HardHat, could you help me verify the contract?
@Skyge
After a lot of work I have downloaded Truffle, but i don’t get how you verify your contract now.
Could you please help me?
sorry for the many question. I hope you can help me
Yeah, I found the code on the main branch of the OpenZeppelin repo has updated, so maybe you should found out the original code you deployed rather than the latest version.
I’m very new so sorry for the many questions. How can I found the code I used. I know the day when I created the code (20 May) and what do I need to do with that code? Do I need to use that code to verify my contract? And if so where?
again sorry im new and don’t know that much.
Thank you I am truly speechless. I was up until almost 04:00 trying to hardcode, recode, debug, flatten, compile/recompile …and about to smash my computer.
no DMs on this platform?? I want to give you a % of my tokens if you’re interested. I plan to market rn I’m just networking. Thanks, again. You’re the best!