Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [contract-verification]

The tag has no usage guidance.

1
vote
0answers
48 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: ...
2
votes
1answer
52 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, ...
0
votes
1answer
32 views

How can I get the ABI Encoded constructor argument to verify my TOKEN on etherscan.io? [duplicate]

I'm exhausted of researching about the Constructor Arguments ABI-Encoded, it seems very confused. Can somebody help me? ...So, this is the code: pragma solidity ^0.4.16; contract owned { address ...
1
vote
2answers
51 views

How to authenticate a smart contract

my Question is, how the identity of a smart contract can be verified, or basically how to authenticate a contract. As far as I know a contract does not have a private key and also cannot keep one, ...
0
votes
2answers
73 views

How to test the following contract

I read a research paper for verification and validation of solidity code Here's a link:)! The code is given below: contract MyBank { mapping (address)uint) balances; function Deposit() { ...
1
vote
0answers
18 views

Ethereum shape analysis

I am currently researching about the formal verification of smart contracts. I am surprised that I did not manage to find a paper about the (shape) analysis of the storage of a contract. Is there in ...
3
votes
2answers
181 views

Inability to verify contract with ABIEncoderV2 on Etherscan

Yesterday I deployed a contract to Ropsten (https://ropsten.etherscan.io/address/0x1fe59c223fa4e9781237f0f49a15ca598069cc30) that relies on V2 of the ABI encoder. Thus it includes statement pragma ...
0
votes
0answers
69 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 ...
1
vote
1answer
47 views

What if I don't verify a contract?

I have a question, what if I have a simple contract that has a public function "give something to this adress" and that will be called from a website I will put it on-chain but will not verify it ...
0
votes
0answers
35 views

Looking for good guide on how to deploy and verify source code of Smart Contract using Truffle/Remix

Can't really find good guides on how to deploy and verify smart contracts to testnetwork Ropsten. Would like to deploy multifile smart contracts including libraries. Are there any good HowTos already? ...
2
votes
1answer
71 views

Is the Solidity specification still its compiler?

I'm currently reading some literature about verification of smart contracts. One of the papers I read is Defining the Ethereum Virtual Machine for Interactive Theorem Provers by Hirai (pirapira). In ...
1
vote
2answers
77 views

How does a miner verify the output of a smart contract?

I am new to Ethereum and smart contracts. I understand ethereum is modeled as a state machine and smart contracts work as "agents" to change the state through transactions. However, it seems rather ...
0
votes
2answers
88 views

How do I find out what compiler version was used to deploy with MyEtherWallet

If I deploy a contract on MyEtherWallet.com how can I find out what compiler version was used, for verifying the code on etherscan, etc.?
1
vote
1answer
227 views

Miner and Validator, who can validate a contract?

I am still confused with the process from creation to validation of transaction or contract verification. Actually the terminology makes me confused such as voter, validation, miner, honest node, ...
1
vote
1answer
259 views

Publish and Verify the source code of a contract created by another contract on etherscan [duplicate]

This is the main contract which has been verified succesfully: https://ropsten.etherscan.io/address/0xc4c89dd46524c6f704e92a9cd012a3ebadadff36 This is the created contract I can't get verified: https:...
0
votes
1answer
138 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 ...
0
votes
0answers
144 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 ...
1
vote
1answer
548 views

Token contract source code not verified

Hi i have create my token with your code i have use https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/EIP20.sol end https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/...
-2
votes
1answer
138 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:/...
1
vote
1answer
114 views

Verifying smart contract on etherscan created through contract factory [duplicate]

I deployed contract through contract factory and I'm trying to verify it on etherscan. After failing attempts I have compared the bytecode of deployed contract from contract factory with the ...
0
votes
1answer
132 views

Verify Contract Code Eth

I'm trying to verify an erc20 Contract code for a few days. I have read a lot and tried but just can not get on. maybe someone can help me? Here are the dates: /* Implements EIP20 token standard: ...
0
votes
0answers
200 views

Unable to generate Contract ByteCode and ABI - verify contract

i have problem with verify contract. I getting error: Error! Unable to generate Contract ByteCode and ABI Screenshot: https://ctrlv.cz/shots/2018/03/20/4kh5.png My code: pragma solidity ^0.4....
1
vote
1answer
69 views

Do you know online tool for abi encoding?

Is there easy to use online tool to encode ABI parameters to pass verification on etherscan?
0
votes
1answer
20 views

Are the contracts deployed are verified?

In Ethereum, I understand that one can create a contract and deploy it to the blockchain, but I am not clear, how is this contract verified by miners before placing on the chain (it can be a voting ...
0
votes
0answers
51 views

Formal verification question regarding reverts

The current security audit tools like mythril and oyente are really nice for identifying typical vulnerabilities like untrusted call (DELEGATECALL) or reentrancy. A cool feature oyente provides is ...
1
vote
2answers
151 views

How does Etherscan.io figure out constructor arguments without contract verification

Recently, I've seen that Etherscan is able to automatically figure out passed constructor arguments. how were they able to figure it out?
1
vote
1answer
240 views

Ethereum block verification incentive

can someone explain how all the other nodes, except the one that found the block, are incentivised to verify if the block miner(creator) has done the smart contract code execution correctly ? Only the ...
0
votes
1answer
400 views

Constructor Arguments for verification on Etherscan.io

I want to verify a contract on Etherscan.io, but I am not able to find the correct Constructor Arguments. I tried everything which is explained on StackExchange, but cannot get it to verify... The ...
0
votes
1answer
93 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 ...
0
votes
1answer
234 views

ERC20 transfer function - Use “if, else” or “require”

Currently, I am planning to implement an ERC20 compliant transfer function in my ERC20 compliant contract as follows: function transfer(address _to, uint256 _amount) public returns (bool success) ...
1
vote
2answers
421 views

How to find input creation byte code for constructor argument?

I want to verify and publish my solidity source code on Etherscan.io. My smart contract has an argument in it's constructor for which I need to fill a field in the form that takes Constructor ...
9
votes
3answers
2k views

How do you verify a contract on etherscan that is deployed by another contract?

How do you properly verify a contract on etherscan that is deployed by another contact? I deployed a contract that deploys other contracts onto the blockchain. The original contract is verified , ...
2
votes
1answer
354 views

Verifying contracts with libraries

I have a problem very similar to this Cannot verify contracts with libraries on Etherscan Simple code pragma solidity ^0.4.16; //optimization enabled library C { function a() returns (address) { ...
3
votes
2answers
347 views

Why using assert, since it would consume all gas

Since assert would consume all gas and require would return all gas, Is there any reason to use assert not require? Use require to refund gas seems always a better choice than consuming them? I saw ...
6
votes
1answer
3k views

Unable to verify Solidity contract code on etherscan.io

I know this question has been asked many times before. I've read loads of answers, but nothing seems to work for me. I first tried to verify the source code of a much larger, more complex contract, ...
2
votes
1answer
447 views

Is there a way to view or otherwise verify a contract's source code? [duplicate]

In token sales usually the source code for the contract is published. Is there a way to verify whether the published code is actually deployed in the given address?
1
vote
2answers
522 views

Issue with contract verification on Etherscan

I have successfully deployed a new token contract on Etherscan Ropsten Network using metamask. I see my contract listed as "Unverified" so I followed the process given on https://ropsten.etherscan.io/...
1
vote
1answer
469 views

failure to verify truffle compiled contract on ropsten.etherscan.io

Recently just pushed my first smart contract from truffle to the ropsten testnet. As you can see from my terminal output below it compiles and was migrated with no problem: Was broadcast to the ...