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 network by my running geth
node:
The contract can be found on my GitHub here, it looks like this:
pragma solidity ^0.4.13;
// This contract demonstrates a simple non-constant (transactional) function you can call from geth.
// increment() takes no parameters and merely increments the "iteration" value.
contract Incrementer {
uint iteration;
function Incrementer() {
iteration = 0;
}
function increment(uint count) {
iteration += count;
}
function getIteration() constant returns (uint) {
return iteration;
}
}
This is the representation of the transaction on ropsten.etherscan.io
:
You can see that the ByteCode on the Blockchain (what we are looking for)
and the Your Compiled Bytecode (what you provided)
are the same in the beginning- I don't know if that means anything or not- but anyhow:
I know that in the past there were some problems with trying to verify contracts compiled with truffle
with respect to the Runs (Optimizer)
, but so far as I could tell this has been fixed, anyway for good measure I've tried to verify with this value set to 0
and also to 200
, neither have worked...
Here's what I've been entering:
Is it correct what I've been doing?
Why is this contract not verifying?
0.4.13
and above, none of them worked