yanis
June 4, 2022, 7:02am
1
Hi
I greate token with openzeppelin and remix
my smart contract is default
"// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin /contracts/token/ERC20/ERC20.sol";
contract Pixecoin is ERC20 {
constructor() ERC20("Pixecoin", "PIXE") {
_mint(msg.sender, 99999999 * 10 ** decimals());
}
}
i want to publish my token on bscscan, what file need to upload and where this file to get ?
Thanks)
You need to go the github of openzeppeling and copy the code out of the file.
@openzeppelin /contracts/token/ERC20/ERC20.sol
yanis
June 5, 2022, 6:59pm
3
code or file? I tried it didn't work
you can copy the code in your project or publish multiple files. and it works, I used it for my projects too. also ERC20.sol also has imports that you need to put in your code
yanis
June 6, 2022, 7:32am
5
can you tell me step by step how to do it ?
Please refer to our guide on verification: