Contract A created a multi-index table pets like
pets(_self, _self); ... pets.emplace(user1,...);
Now in contract B, I would like to update a row like
pets(N(A), N(A)); ... pets.modify(pet, user1, ...);
When I try that I get an error:
with error: Assert Exception (10) table_obj.code == receiver: db access violation
What is wrong? How to access a table from another contract?
For read see here: https://eosio.stackexchange.com/a/70/1509
Update: The error was due to a bad serialization. The correct error says it all, and is:
Error 3050003: eosio_assert_message assertion failure Error Details: assertion failure with message: cannot modify objects in table of another contract
My solution (14 July 2018)
I am sending an action from contract B to contract A as describe here How to send an action from one contract to another?