1

In Eosbetdice contract, https://gitlab.com/EOSBetCasino/eosbetdice_public/blob/master/EOSBetDice.cpp#L193

The code of the contract in this line should be "eosio.token". I wonder why it doesn't get "cannot modify objects in table of another contract" error as it is trigger by contract eosio.token and trying to create new record in other contract's table.

1 Answer 1

3

Because it is being paid for by _self, which is always allowed.

In general, you can not charge other people RAM when doing transfers, only yourself.

You can charge other people RAM when performing any other action.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.