I have a contract here: contract source code
It's a simple one that allows users to create new key:value mappings with bytes32 variables, as well as update the value of a key given that:
- the key is owned (was initially set by) the
- the mapping is not empty (which I express by doing
require(items[key] != 0)
However I get a transaction reverted when trying to update even with the user being the one who initially set the key:value and it being not empty. Could anyone tell me why? Thanks.