statstable.modify( st, 0, [&]( auto& s ) {
s.supply += quantity;
});
Here is some code from the eosio.token contract. How can the payer be 0? what does it mean?
Here are the params for the modify function btw (as per developers.eos.io):
modify(itr, payer, updater)
where:
itr
- an iterator pointing to the object to be updatedpayer
- account name of the payer for the Storage usage of the updated rowupdater
- lambda function that updates the target object