Fail - Unable to verify
See original GitHub issueI’m having the old-and-familiar issue with verification. The contract was compiled and deployed.
The deployed contract can be found at 0x35c850e8c31fab411dde65f94142f25029229a75
CBToken.sol
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Pausable.sol";
contract CBToken is Ownable, ERC20Mintable, ERC20Pausable, ERC20Detailed {
constructor(string memory _name,
string memory _symbol,
uint8 _decimals)
ERC20Detailed(_name, _symbol, _decimals)
public
{
}
}
package.json
{
"name": "marketplace",
"version": "1.0.1",
"description": "online marketplace, crowdsale and token control",
"scripts": {
"lint": "eslint ./",
"test": "mocha",
"build": "rimraf public && webpack -p --config webpack.production.config.js",
"dev": "concurrently --kill-others \"webpack-dev-server\" \"node .\\server\\server.js dev build\"",
"server": "node server/server.js"
},
"author": "RENESALIS DOO",
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"concurrently": "^4.1.0",
"eslint": "^3.14.0",
"eslint-config-standard": "^6.0.0",
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-promise": "^3.0.0",
"eslint-plugin-standard": "^2.0.0",
"webpack-dev-server": "^3.1.14",
"openzeppelin-solidity": "2.1.2",
"openzeppelin-test-helpers": "^0.1.2",
"truffle-hdwallet-provider": "^1.0.0-web3one.3"
},
"dependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.3.1",
"@poanet/solidity-flattener": "^3.0.6",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"copy-webpack-plugin": "^4.6.0",
"css-loader": "^2.0.1",
"express": "4.16.4",
"ipfs-mini": "^1.1.2",
"log-timestamp": "^0.3.0",
"mocha": "^5.2.0",
"mongoose": "^5.4.6",
"morgan": "^1.9.1",
"rc": "^1.2.8",
"scrypt": "github:barrysteyn/node-scrypt#fb60a8d3c158fe115a624b5ffa7480f3a24b03fb",
"style-loader": "^0.13.1",
"truffle-contract": "^4.0.4",
"truffle-plugin-verify": "^0.4.0",
"web3": "1.0.0-beta.37",
"webpack": "^4.29.3",
"webpack-cli": "^3.2.3"
}
}
deploy.js
const Token = artifacts.require("./CBToken.sol");
async function doDeploy(deployer, network, accounts) {
const _name = "Demblock-Marketplace-TGE";
const _symbol = "dbto1";
const _decimals = 18;
await deployer.deploy(Token, _name, _symbol, _decimals);
}
module.exports = (deployer, network, accounts) => {
deployer.then(async () => await doDeploy(deployer, network, accounts));
};
truffle-config.js
// Includes
require("@babel/register");
const path = require("path");
const WalletProvider = require("truffle-hdwallet-provider");
const HTTP_WEB3_PATH = require("./configs/params").dapp.HTTP_WEB3_PATH;
/// Key configs
let MAINNET_PROVIDER = new WalletProvider(
[process.env.PRIVATE_KEYS || ""],
HTTP_WEB3_PATH
);
/// Configs export
module.exports = {
contracts_build_directory: path.join(process.cwd(), "src/"),
networks: {
mainnet: {
provider: MAINNET_PROVIDER,
gasPrice: 10000000000,
gas: 3600000,
network_id: 1
}
},
compilers: {
solc: {
version: "^0.5.0", # deployed via 0.5.2+commit.1df8f40c.Emscripten.clang
},
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: '########'
}
};
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Fail - Unable to verify · Issue #151 · rkalis/truffle-plugin-verify
Describe the bug Fail - Unable to verify Steps To Reproduce $ npx truffle migrate --network ftmtestnet Compiling your contracts.
Read more >Error in plugin @nomiclabs/hardhat-etherscan: The contract ...
Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed. Reason: Fail - Unable to verify - with arguments · Ask Question.
Read more >How to fix etherscan contract verification error with hardhat?
We tried verifying your contract Raffle without including any unrelated one, but it failed. Trying again with the full solc input used to ......
Read more >Error trying to verify smart contract : r/ethdev - Reddit
"Error in plugin @ nomiclabs/hardhat-etherscan: The contract verification failed. Reason: Fail - Unable to verify".
Read more >Unable to verify Hardhat contract (Rinkeby Testnet)
We tried verifying your contract Token without including any unrelated one, but it failed. Trying again with the full solc input used to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m noticing now that the constructor argument was not picked up by the
v0.5.0. I’ll try to override the argument call and post the result.Edit: Still does not work.
As this is not a relevant bug for the library, there is no reason to keep it open. Thanks @rkalis for the advices, cheers!