Sir,
When I execute assignment statement in order to insert/update int value to one cell in 2-dimensional array,it doesn't succeed. The geth console didn't response any error message.The contract just return 0.
My contract is like below:
pragma solidity ^0.4.2;
contract MemDeposit
{
struct deposit {
string[] ss_ids;
int[][] si_deposit;
}
mapping(address=>deposit) private si_md;
.......
function addMemDeposit(address p_memacct,string p_acctstr,uint p_idx2,int p_money) external returns(int) {
int li_idx1;
li_idx1 = 0 ; //just for test
...
si_md[p_memacct].si_deposit[p_idx2][li_idx1] = p_money; //this doesn't work,contract quit here,client get 0
...
}
}
I have debug this contract,the error occurs in the assign statement.So my question is how to insert(or update) data to the cell in 2-dimensional array?
Sincerely!
Barkely