On deploying a contract using Remix on private net and using eth.getCode(<contract's address>)
, I am getting "0x"
as output. A simple contract like below is giving me the same result as well:
pragma solidity ^0.4.0;
contract SimpleStorage {
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint) {
return storedData;
}
}
I tried increasing gas limit using --targetgaslimit while initiating geth as well, but it didn't help either. Any suggestions on how to resolve this issue?
Adding output of Tx Receipt:
>eth.getTransactionReceipt("0xb0e9618bc1b05b59fc4624ae7c4db9f95f22bfd24982ef55c5f28ce7e626977c")
{
blockHash: "0xae9bad233840e5acc872f167b3084e037c64d60d93c0229cdd6e9bc8229169d5",
blockNumber: 26245,
contractAddress: null,
cumulativeGasUsed: 22872,
from: "0x59d974cd767e994176c4950b7a231cb7c5403ec5",
gasUsed: 22872,
logs: [],
logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
root: "0xff06b18b48d1c2822d15cd03af57fd29ec67b69c6051587477858dbe3e4398da",
to: "0x8584fa5f7c42783647c0fe344abf31b04886bc12",
transactionHash: "0xb0e9618bc1b05b59fc4624ae7c4db9f95f22bfd24982ef55c5f28ce7e626977c",
transactionIndex: 0
}