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.

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, privacy policy and cookie policy

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