Skip to main content

Questions tagged [contract-verification]

The tag has no usage guidance.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
85 views

unable to verify etherscan contract may be due to high optimize runs

I have used high optimize runs as 999999999 while deploying contract.. I need to verify contract on etherscan but it has range from 0-1000000 .. what should i do?
Abhishek Bengani's user avatar
2 votes
2 answers
941 views

How do the public key recovery methods like secp256k1.RecoverPubkey(msg, sig) recover public key from a transaction signature

For a signature done using a private key, we know that the corresponding public key is needed to verify. When the address is a one way hash function of the public key (which means from the address, it ...
thiru's user avatar
  • 21
2 votes
0 answers
38 views

dapptools verification: jays: error in -e

I'm deploying a simple blank contract: // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.6; contract DapptoolsPlay { } However, when I use the verify command from dapptools, I run ...
Patrick Collins's user avatar
2 votes
0 answers
176 views

How to verify a contract in etherscan older than 0.4.11?

It seems that the verification feature of Etherscan supports contracts written since Solidity 0.4.11. I want to verify a contract written with Solidity 0.4.8. Is this possible? I'm wondering if this ...
elopio's user avatar
  • 452
2 votes
0 answers
834 views

Etherscan verification bytecodes don't match

Hi I'm trying to verify a token deployed at 0x87ab739464881af0011052d4ca0b0d657e8c3b48 in tx 0xbaa8f3fe86a35d2e0b7ed16b24782743e7dfb1eb21cfbb12253d0a50ef2ff365. (Mainnet) I compiled and deployed it ...
Jordi Estapé Canal's user avatar
2 votes
1 answer
267 views

Why do compiler version and version in the source code not fit together for some verified contracts on Etherscan?

I found this verified contract on Etherscan: https://etherscan.io/address/0xd7a27d8d58f0c9e378fb3cb2816bde94c5e34059#code Etherscan says, it was compiled with solc version v0.4.14+commit.c2215d46, ...
hefeleal's user avatar
  • 147
1 vote
2 answers
81 views

Verification of a proxy contract not working because of constructor args

I am creating a smart contract verification service as a learning experiment and I am now able to verify most of contracts that I come across etherScan (in part doing so there is not only an option). ...
Daniel Pérez García's user avatar
1 vote
0 answers
244 views

Foundry: Veirfy contracts on deployment with config in foundry.toml

Ok so I'm using Foundry to deploy contracts to multiple networks (Ethereum and L2s). I use the --verify option to verify on deployment. On goerli network the contracts get verified automatically on ...
Inn0vative1's user avatar
1 vote
0 answers
39 views

How to pass argument with a specific interface into constructor for a sucessfull etherscan verification?

I have an marketplace contract that needs to be verified. It looks like this: // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol&...
weird-dreams's user avatar
1 vote
1 answer
465 views

BSC-Testnet Contract verification Fails: Error! Unable to generate Contract ByteCode and ABI

I've been struggling with this with different methods. As the most straightforward, I tried manually-flattening the code in REMIX, and verifying it on bscscan. Compiler version OK, Runs for ...
ealco85's user avatar
  • 23
1 vote
0 answers
15 views

The concept of delayed abstraction: VerX

I am trying to understand the concept of delayed abstraction mentioned in paper [416] at: Link of VerX VerX tool uses the concept of delayed abstraction for SC verification. Is Delayed abstraction ...
zak100's user avatar
  • 1,406
1 vote
0 answers
221 views

TRYING TO VERIFY MY SOURCE CODE ON ETHERSCAN ErrorUnable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])

Compiler Warning(s): ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function definition. --> myc:1:1: | 1 | "accounts": { | ^^^^^^^^^^ ...
zack's user avatar
  • 11
1 vote
0 answers
264 views

" But we were unable to locate a matching bytecode (err_code_2)" - can't verify smart contract on etherscan

I deployed my contract to rinkeby recently but I am unable to sell verify it. Here's a screenshot of the page. I've already flattened the file (since I imported like 10 OZ files) via remix, and it ...
kmao's user avatar
  • 21
1 vote
0 answers
130 views

How to update local search path for nomiclabs-hardhat-etherscan?

The documentation says: Just provide the deployment address and constructor arguments, and the plugin will detect locally which contract to verify however I have some contracts that only implement ...
ClementWalter's user avatar
1 vote
0 answers
207 views

I am unable to publish and verify my contract on etherscan kovan test network. (Year 2021)

I am trying to publish my contract on kovan testnet but in the compiler output section, I am getting the same error again and again. I tried to do everything which was asked there, but couldn't find a ...
Caxva's user avatar
  • 11
1 vote
0 answers
225 views

Why the contract verification using truffle is failing?

I have deployed a smart contract on BSC test net and it is successfully being verified using the following code truffle run verify PancakeFactory --network testnet but it fails if I do it like this ...
Azeem Lodhi's user avatar
1 vote
0 answers
86 views

How to verify access of child contracts?

I am using a factory A to produce child contracts. Now I want to guarantee that only these child contracts have access to a different contract B. Using the factory as a proxy is somehow a detour as I ...
Olympus's user avatar
  • 31
1 vote
0 answers
159 views

Etherscan Verifying Contract Code: Error! Constructor arguments provided but might be unncessary because source code contains a public constructor

I'm trying to verify my solidity code through etherscan but it gave me this Error! Constructor arguments provided but might be unncessary because source code contains a public constructor. Tip: ...
bandrosCake's user avatar
1 vote
0 answers
211 views

Etherscan: Verify and Publish Source Code - Error! Library Name and Address was provided but not used in the contract

Tried to verify my Smart Contract on Etherscan for Ropsten. Smart Contract is a library which actually also imports another library (which is already verified). Getting following error Error! The ...
Senju's user avatar
  • 701
0 votes
0 answers
15 views

Issue with ERC20 Contract Verification on Base API Despite Successful Response

I'm attempting to verify my ERC20 contract using the Base API. I'm receiving a positive response with the following: { "status": "1", "message": "OK", ...
Yazan Ali's user avatar
0 votes
0 answers
22 views

Contract Verification Problem

I'm encountering a perplexing issue while trying to verify my contract through BaseScan. I received a successful verification response from https://api.basescan.org/api as follows: { "status&...
Yazan Ali's user avatar
0 votes
0 answers
33 views

Unable to generate Contract ByteCode and ABI

I have deployed my smart contract on Base Mainnet, and when i try to verify it on Basescan, I keep getting this error message: "Error! Unable to generate Contract ByteCode and ABI (General ...
alanng90211's user avatar
0 votes
0 answers
23 views

I am experimenting with a contract and creating my own router and running into a verification Issue on EtherScan

hope you all are well. I wanted to see if anyone would be able to help me diagnose what I could possibly be doing wrong. Ive read through numerous posts and it seems many solutions have not yet helped ...
Altcoin View's user avatar
0 votes
0 answers
15 views

Etherscan.io Verification Addresses

It's taking me a long time to verify addresses on Etherscan.io Can someone give me a solution for verifying contract addresses?
Brenda Lee Smith's user avatar
0 votes
0 answers
41 views

Etherscan - Problem with smart contract verification (Error! Unable to generate Contract Bytecode and ABI)

I got a smart contract created (Metamask) and deployed to Etherscan via REMIX. On Etherscan my Metamask wallet appears as contract creator. All went fine - so far so good. Now my problem: I try to ...
hausgeist's user avatar
0 votes
0 answers
17 views

Etherscan does not recognize Remix Flatten contract? Don't know why?

I just tried to verify my token contract in Etherscan with a flattened version of the contract, generated from the Remix feature. It is a standard openzeppelin ERC20 contract and got the following ...
Patupai's user avatar
0 votes
1 answer
86 views

Different bytecodes when verifying contract on Etherscan Goerli for code from OpenZeppelin Wizard

I went to https://wizard.openzeppelin.com to generate an ERC20 contract and then pasted the contract on Remix and deployed on Goerli. Then, I flattened the same code and tried to verify it on Goerli ...
ratib90486's user avatar
0 votes
0 answers
24 views

Multiple Solidity Versions in flattened file

I have deployed a contract to Mumbai Polygon testnet. While verifying and publishing source code, the flattened file has multiple solidity versions. I got the error below. The OpenZeppelin contracts ...
Valli Nayaki Chidambaram's user avatar
0 votes
1 answer
134 views

How to Retrieve Library Addresses Linked to a Smart Contract on Etherscan?

I've run into a situation where I need to identify the library addresses that a verified contract is linked to. I understand that during the contract verification process on Etherscan, one must ...
MShakeG's user avatar
  • 1,733
0 votes
1 answer
94 views

how to deploy factory smart contract

// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; contract Car { string public model; address public carAddr; constructor( string memory _model) { model = _model; ...
Nisarg's user avatar
  • 21
0 votes
1 answer
173 views

Sourcify is failing to verify a contract that is verified on etherscan. Why?

This contract address: 0xA933268b812f97Cf623Af8d16780e45880fa1af2 Is verified on mumbai polygonscan. When I try to verify it with sourcify, I get this error: invalid json response body at https://...
Yan Digilov's user avatar
0 votes
1 answer
112 views

verifying smart contract using etherscan api?

I wanted to verify my smart contract from polygonscan api but when I use this code I always get a Module Error : "Error! Missing Or invalid Module name" and this is the code I am using in ...
geniar99's user avatar
0 votes
1 answer
200 views

Verify a cloned contract

I want to deploy a contract via the clone factory pattern described here Is there a way to verify the child cloned contract (preferably via CLI) on etherscan? I know for proxy contracts generally it ...
YBM's user avatar
  • 1
0 votes
1 answer
16 views

Problems verifying token contract address

I am having problems verifying my token as it shows https://i.sstatic.net/N8GFF.png Even though the bytecode appears to be correct im getting a safemath.sol error and i cant seem to figure out how to ...
ItsInhaleYo's user avatar
0 votes
1 answer
170 views

ERC-1155 contract verification error: Unable to generate Contract ByteCode and ABI | ByteCode (what we are looking for): - vs what we got -

I'm getting the following error while verifying my ERC-1155 smart contracts. Before verifying I cross-checked the following things: compiler version. Optimizer settings (enabled or not, runs, etc.) ...
BUIDLer's user avatar
0 votes
0 answers
214 views

factory implementation etherscan verification

I have a contract and its factory. The factory allows cloning of the contract through EIP-1167. Although I can deploy the factory and verify it easily on etherscan: hardhat verify --network <...
Syffys's user avatar
  • 121
0 votes
1 answer
499 views

Problem with "Verify & Publish Contract Source Code" on BscScan

I wanted to "Verify & Publish Contract Source Code" on BscScan, but I get this message: ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "...
Piotrekkk's user avatar
0 votes
1 answer
211 views

brownie deployment KeyError: 'OpenZeppelin/[email protected]/Address' FLAT FILE?

Could anyone help me make sense of this error. For context. I had 2 contracts 1 will verify and the other won't. I noticed this when trying to merge them into 1 contract. The contract that is not ...
William Best's user avatar
0 votes
2 answers
655 views

What is the problem with how i am going about verifying my contract i just deployed?

Im having troubles verifying and my constructor arguments and ABI have been triple checked. Can anyone assist? here is what im getting on polygonscan. Compiler debug log: Error! Unable to generate ...
0xGbrads's user avatar
0 votes
0 answers
973 views

How to Verify smart contracts deployed on polygon scan?

we have deployed solidity contract to polygonscan, but for some reason, the smart contracts with imports cannot be verified. Has anyone else experienced this?
Kaleb Amarante's user avatar
0 votes
0 answers
131 views

Error! Unable to generate Contract ByteCode and ABI in BSCSCAN - I've been trying to verify this for the past 3 days Please help

/** *Submitted for verification at BscScan.com on 2021-06-06 */ // SPDX-License-Identifier: MIT /** Little Cockroach (LCRS) - What do you get at the end of a joint of dick weed? Cock ...
sam argu's user avatar
0 votes
1 answer
338 views

Can not verify source code on Etherscan (ERC721 contract)?

pragma solidity ^0.7.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/token/ERC721/ERC721.sol"; import "https://github.com/OpenZeppelin/...
Antonio's user avatar
  • 23
0 votes
1 answer
141 views

Truffle-plugin-verify says passed but still unverified on BSCscan

Contracts deployed via Truffle are not properly verifying on the mainnet. On my end it says verification passed but on the website it's still unverified. I've been able to deploy and verify the same ...
Shiny's user avatar
  • 1
0 votes
0 answers
26 views

How to Submit 0.4.10 Sol version Contracts to Etherscan for Verification

I am trying to verify a Solidity Contract I wrote using Remix written in Solidity version 0.4.10.The problem is that Etherscan wont allow me to select Solidity Version 0.4.10 for my Project.
Ninja's user avatar
  • 1
0 votes
0 answers
108 views

What exactly does the miner verify in the process of verifying the transaction?

I have seen different answers to this question. For example, one transaction calls a function on a smart contract. Some people say that the miner uses the same input to verify that the output is the ...
wei wang's user avatar
  • 437
0 votes
1 answer
2k views

Can't verify contract on etherscan - unable to locate a matching bytecode (err_code_2)

As the title says I cannot verify my smart contract on Etherscan. I read all the solutions from similar threads with no luck. I'm getting the following error : Error! Unable to generate Contract ...
user3362334's user avatar
0 votes
1 answer
223 views

Failed to verify contract source code due to timeout/memory limit

Failed to verify contract deployed through remix on Ropsten network both using optimization and without it. Error is: Exception #1 Occured: ERROR|The Contract solidity compilation has exceeded the ...
PATAPOsha's user avatar
  • 101
0 votes
0 answers
602 views

Unable to verify deployed contract! Error! Unable to generate Contract ByteCode and ABI

I already searched and many of the people got this issue, I tried that but unable to fix this issue. I have deployed a contract and Contract Address is here. I am getting this error Error! Unable to ...
Kamran Jabbar's user avatar
0 votes
1 answer
280 views

Etherscan Verification when using a ContractFactory

If I have a contract (ContractFactory) that creates several instances of some other contract (SubContract), is there a way to verify all instances of SubContract? pragma solidity ^0.4.19; contract ...
JS_Riddler's user avatar
-1 votes
1 answer
453 views

Problem in Veifying Smart Contract On Testnet

I'm not able to verify my smart contract on Rinkeby and Ropsten Testnet Network. Rinkeby Link - https://rinkeby.etherscan.io/address/0x029798a8c21050cbaaa2d5ecbd5e06622b602b82 Ropsten Link - https:/...
Gagan's user avatar
  • 433