There are a couple of commands, reproduced below, which I've used successfully in the truffle console
, executing on testrpc
, which work and elicit the responses that I expect.
How can I change them to make them applicable to ropsten
? How can I send them through the geth
console?
The contract I'm trying to interact with was deployed to the ropsten testnet in this transaction.
The code of the contract can be found on my GitHub.
The first command I want to use is to increase the iteration
variable:
Incrementer.deployed().then(function(instance) {
meta = instance;
return meta.increment(1);
})
The next thing I want to do is verify the result:
Incrementer.deployed().then(function(instance) {
meta = instance;
return meta.getIteration();
})
At this point I've figured out that I have to use the ABI, but that's as far as I got.
How can I transmogrify those commands into something that I can send through the geth
console into the ropsten
testnet?