9
votes
How do you verify a contract on etherscan that is deployed by another contract?
It is not possible as on 24th March 2018. Etherscan is unable to locate contract code on the address of subcontract.
Here is the transaction which deploys two contracts. But for the second contract, ...
7
votes
How do you verify a contract on etherscan that is deployed by another contract?
I have deployed a contract from another contract:
https://etherscan.io/tx/0x8fd885ce7ad7b6a591d9614d41cbb1d97aa7d2e290f6aa52531ce3d4c799a5ff
which deployed:
https://etherscan.io/address/...
7
votes
Unable to verify contracts on polygon Amoy testnet
I've asked regarding this issue on OKLink Discord channel, and they've responded.
So, the correct configuration to be used in the hardhat.config.js would be:
etherscan: {
apiKey: {
...
6
votes
Why using assert, since it would consume all gas
You can use assert (over require) to indicate your intention to source code analyzers such as oyente. While require is good to validate input, it can sometimes be false because the user did something ...
5
votes
How do you verify a contract on etherscan that is deployed by another contract?
If you're a Hardhat user, you can use the hardhat-etherscan plugin:
$ yarn hardhat --network NETWORK_NAME verify CONTRACT_ADDRESS --param1 --param2
It works even with contracts deployed by other ...
5
votes
Accepted
How does Etherscan.io figure out constructor arguments without contract verification
This was already answered in the comments to your own previous question
To summarize:
The transaction that created the contract is visible on Etherscan (example here)
The input data to that ...
5
votes
Verify simple smart contract on etherscan
I deployed the contract on the Kovan test net. Deployment versions same as you.
Everything worked properly. I see no reason for it not to work on Ropsten.
How did you deploy the contract? Maybe ...
5
votes
Accepted
Difference between SMTChecker and Manticore?
tl;dr: you should use both (and more) :)
Different FV/static analysis tools often have different features and pros/cons which might complement each other and give you better coverage.
In this case, ...
4
votes
Constructor Arguments for verification on Etherscan.io
The parameters for the constructor are appended to the contract. If you look at the "Input Data" in the contract creation transaction https://etherscan.io/tx/...
4
votes
Why using assert, since it would consume all gas
If you want to punish the naughty users who supply bad arguments to your functions, you should use up all their gas :-)
4
votes
Accepted
Unable to verify Solidity contract code on etherscan.io
I was able to verify my contract with optimization turned on, when compiling from remix:
https://ethereum.github.io/browser-solidity/
For some reason, it produces a different bytecode from Parity, ...
4
votes
Accepted
"TypeError: etherscan.apiKey.trim is not a function" with multiple API keys
I got this same error (on rinkeby network).
Fixed by removing the @nomiclabs/hardhat-etherscan package, then reinstalling it:
npm remove @nomiclabs/hardhat-etherscan
then
npm install --save-dev @...
3
votes
How do I find out what compiler version was used to deploy with MyEtherWallet
In order to deploy contract on MyEtherWallet, you need the bytecode. The bytecode contains the solidity pragma version in the metadata which is converted into the object parameter in the bytecode you ...
3
votes
Do you know online tool for abi encoding?
Yes, you can use this tool: https://abi.hashex.org. It can automatically parse constructor parameters from ABI or you can add them manually. After you enter parameter values, ABI-encoded parameters ...
3
votes
Accepted
Cannot verify Solidity contract code on etherscan.io
Those are predeployment suggestions to reduce ambiguity at this step.
The issue is there no way to be certain how the bytecode was generated because the pragma allows flexibility.
If possible, ...
3
votes
Accepted
Can I change the comments in a contract and still pass Etherscan verification?
Etherscan only compares the bytecode of the submitted contract to the bytecode of the deployed contract (excluding the metadata hash). So you can change any comments and the source code will still be ...
3
votes
Automatic verification of Smart Contracts deployed from another Smart Contract
Contract verification is an off-chain process. For etherscan for instance, the code is stored by Etherscan and they just verify that the bytecode matches. You can create scripts off-chain however to ...
3
votes
Accepted
Is it possible to verify someone else's smart contract on Etherscan?
That is right. Anybody with the source code can verify any contract.
For example, I deployed this contract:
0xD93f610B9b70E9aCda192091645F48ACfB63C676
with this account: ...
3
votes
I can't verify contract on etherscan because it needs abi-encoded constructor
There are multiple ways to verify the contracts.
I would recommend using the hardhat etherscan plug-in, it's the simplest.
I assume you are directly verifying via etherscan by copy-pasting the code, ...
2
votes
Why using assert, since it would consume all gas
Here's a good article: https://codeforgeek.com/assert-vs-require-in-solidity/
Philosophically, they are intended to mean two very different things. require is "user should have done this before ...
2
votes
Accepted
failure to verify truffle compiled contract on ropsten.etherscan.io
You were trying to verify the "Migrations" contract that you used in your truffle configuration.
You incrementer contract was the next contract you created, and can be found here:
https://ropsten....
2
votes
Ethereum block verification incentive
Miners want to win future blocks. If they don't independently verify that the chain they are following is the right one, they may end up spending future money doing proof of work on an incorrect chain....
2
votes
ERC20 transfer function - Use "if, else" or "require"
Per https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md#transfer:
The function SHOULD throw if the _from account balance does not have enough tokens to spend.
So I'd say you ...
2
votes
How to find input creation byte code for constructor argument?
An easy way to find the constructor arguments is:
Browse to your contract on Etherscan and click on the tx hash for its creation
On the top right, where it reads "Tools & utilities", click on the ...
2
votes
Accepted
Token contract source code not verified
How i can do that ?
Generate flat sol file from your two source files, for example, with solidity-flattener. Insert content of this flat file to "Enter the Solidity Contract Code below" field
Choose ...
2
votes
Accepted
Is the Solidity specification still its compiler?
The semantics of Solidity change with every update, and the only canonical definition is the compiler itself. Note that there is a distinction between the intended behavior of the compiler and the ...
2
votes
Accepted
How to authenticate a smart contract
I don't think your question is unclear (someone flagged it) but it's pretty far off from the way Ethereum works conceptually. Let's start with the big one.
Everything in Ethereum is deterministic, ...
2
votes
Accepted
Can't see the source code with the new Etherscan user interface?
There's a link on the right-hand side (in "Profile Summary") labeled "Contract". Click that, and then, assuming there's verified code available, you should see a tab for the contract's code.
(You ...
2
votes
Is a contract verified and safe if it's created by a verified contract?
It depends on what you mean by "safe".
You can confidently derive the source code of this contract by the source code of the deployer. It will normally happen from a statement in the form of new ...
2
votes
cannot verify the contract address because of compiler version 0.4.9 not available in etherscan verify contract
It looks like you just deployed this contract recently. I would suggest upgrading your compiler to the latest (0.5.10 at the time of this post) or at least the latest 0.4.x compiler and redeploying. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
contract-verification × 121etherscan × 53
verify × 28
solidity × 27
remix × 17
contract-deployment × 16
hardhat × 10
tokens × 9
contract-development × 8
abi × 8
bytecode × 8
transactions × 5
truffle × 4
erc-20 × 4
mining × 4
ropsten × 4
polygon × 4
constructor × 4
contract-design × 3
testnets × 3
bsc × 3
compiler × 3
hardhat-deploy × 3
foundry × 3
ether × 2