I'm testing a very primitive contract using mapping.
contract PhysicalContract {
uint numContracts;
mapping (address => uint) contracts_test;
function newDeal(address adr, uint value) public{
contracts_test[adr] = value;
numContracts++;
}
}
The variable numContracts is successfully updated when I call newDeal(..) but not the mapping contracts_test.. It keeps desperately empty.
Any help would be greatly appreciated - Thanks