Hi @Skyge.
Thank you. I'll have a look at all the options you presented.
I've posted on the Binance Chain Forum regarding the verification process. No reply as yet.
Also, the OpenZeppelin step by step Hardhat tutorial is great. It's definitely better than the others I've read. I'm still stuck though. I'll share with you guys my most recent attempt at verification using Hardhat. Below:
935782@auth MINGW64 ~
$ mkdir my_contract && cd my_contract
935782@auth MINGW64 ~/my_contract
$ npm init -y
Wrote to C:\Users\935782\my_contract\package.json:
{
"name": "my_contract",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": ,
"author": "",
"license": "ISC"
}
935782@auth MINGW64 ~/my_contract
$ npm install --save-dev hardhat
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npx hardhat
888 888 888 888 888
888 888 888 888 888
888 888 888 888 888
8888888888 8888b. 888d888 .d88888 88888b. 8888b. 888888
888 888 "88b 888P" d88" 888 888 "88b "88b 888
888 888 .d888888 888 888 888 888 888 .d888888 888
888 888 888 888 888 Y88b 888 888 888 888 888 Y88b.
888 888 "Y888888 888 "Y88888 888 888 "Y888888 "Y888
Welcome to Hardhat v2.0.3
What do you want to do? · Create an empty hardhat.config.js
Config file created
added 309 packages, and audited 310 packages in 5m
39 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
935782@auth MINGW64 ~/my_contract
$ npx hardhat
Error HH1: You are not inside a Hardhat project.
For more info go to https://hardhat.org/HH1 or run Hardhat with --show-stack-traces
935782@auth MINGW64 ~/my_contract
$ 888 888 888 888 888
bash: 888: command not found
935782@auth MINGW64 ~/my_contract
$ 888 888 888 888 888
bash: 888: command not found
935782@auth MINGW64 ~/my_contract
$ 888 888 888 888 888
bash: 888: command not found
935782@auth MINGW64 ~/my_contract
$ 8888888888 8888b. 888d888 .d88888 88888b. 8888b. 888888
bash: 8888888888: command not found
935782@auth MINGW64 ~/my_contract
$ 888 888 "88b 888P" d88" 888 888 "88b "88b 888
888 888 .d888888 888 888 888 888 888 .d888888 888
888 888 888 888 888 Y88b 888 888 888 888 888 Y88b.
888 888 "Y888888 888 "Y88888 888 888 "Y888888 "Y888
Welcome to Hardhat v2.0.3
What do you want to do? · Create an empty hardhat.config.js
Config file created
npm install --save-dev @openzeppelin/hardhat-upgrades
npm install --save-dev @nomiclabs/hardhat-ethers ethers
npx hardhat verify --network Mainnet 0xa4072b6Bb0664098ef129DA2bD181848862345C8
Nothing to compile
Compiling 1 file with 0.8.0
Successfully submitted source code for contract
contracts/Ehmetcoin.sol:BEP20Token at 0xa4072b6Bb0664098ef129DA2bD181848862345C8
for verification on Etherscan. Waiting for verification result...
New Edit: I attempted to verify the token using the instruction found here:
https://docs.binance.org/smart-chain/developer/deploy/truffle-verify.html
I got the "command not found" error message 17 times when using that. Also, I did edit the truffle code before I used it (mainnet replacing testnet -- added the bscscan api key and, of course, the contract address).