I have this sample contract that I am trying to run. The function getvalues returns me correct values set earlier, when the setvalues function was written to set 2 values. when i modified the contract to set & return 3 values instead of 2, contract was mined successfully, but getvalues function returns only zeros.
Sample run:
sampcont2.setvalues(2500,100,120,130)
sampcont2.getvalues(2500)
output:
[0,0,0]
When the contract was written to set and return 2 values:
sampcont2.setvalues(2500,100,120)
sampcont2.getvalues(2500)
output:
[100,120]
Here is the contract that returns 3 values:
contract sampcont2{
struct customer{
uint custid;
uint custvalue1;
uint custvalue2;
uint custvalue3;
string comments;
}
mapping(uint => customer) customers;
function setvalues(uint cid,uint a,uint b,uint c) {
customers[cid].custid = cid;
customers[cid].custvalue1 = a;
customers[cid].custvalue2 = b;
customers[cid].custvalue3 = c;
}
function getvalues(uint id) constant returns (uint x,uint y,uint z) {
return (customers[id].custvalue1,customers[id].custvalue2,
customers[id].custvalue3);
}
}
Edit: This is what I see:
I0922 13:49:51.737177 core/database_util.go:353] stored block receipts [01f78178.] I0922 13:49:51.737177 core/tx_pool.go:547] removed tx ( TX(c56cb49dcfd4828ea4bc7dd903de834b4119dbf6d368d9015df423dff11d82f4) Contract: false From: 85e148c97b24c1c1a3bfe91782cb2c9831c38b98 To: 4d37aa6cc5c73464265faefe668d5beb8f517edd Nonce: 248 GasPrice: 20000000000 GasLimit 90000 Value: 0 Data: >0x4378d76f00000000000000000000000000000000000000000000000000000000000003ec00000>00000000000000000000000000000000000000 0000000000000000000660000000000000000000000000000000000000000000000000000000000>00010e00000000000000000000000000000000000000000000000000 0000000000010e V: 0x1b R: >0xb52e254bb50c4c244124b9ac96b215b0d3265bd5bb676b22a8c081801c715037 S: >0x42889e66fcdcb0734dc78f081b598b0a3b467cf3e13d14cfa832035a19309163 Hex: >f8eb81f88504a817c80083015f90944d37aa6cc5c73464265faefe668d5beb8f517edd80b884437>8d76f000000000000000000000000000000000 00000000000000000000000000003ec000000000000000000000000000000000000000000000000>00000000000000660000000000000000000000000000000000000000 00000000000000000000010e0000000000000000000000000000000000000000000000000000000>00000010e1ba0b52e254bb50c4c244124b9ac96b215b0d3265bd5bb6 76b22a8c081801c715037a042889e66fcdcb0734dc78f081b598b0a3b467cf3e13d14cfa832035a>19309163 ) from pool: low tx nonce or out of funds
So is it actually a gas problem?
eth.getCode(addressOfContract)
?