mapping(uint256 => uint256) public amount;
function saveAmount(uint256 _id, uint256 _amount) public {
amount[_id] = _amount;
}
I have a function that saves amount in mapping. When I test this using ganache, I get a weird character values. For example,
instance.saveAmount(1, 100000, {from: account[1]})
then, to see the amount,
instance.amount(1)
which yields
BN: 186a0
Why is it not showing 100000?