eos icon indicating copy to clipboard operation
eos copied to clipboard

db_store_i64 must needs "account_name payer" authority? but void db_update_i64(int32_t iterator, account_name payer, const void* data, uint32_t len); not need

Open chenlian2015 opened this issue 8 years ago • 1 comments

int32_t db_store_i64(account_name scope, table_name table, account_name payer, uint64_t id, const void* data, uint32_t len); this function must needs "account_name payer" authority? but push action from one contract to another contract,how to add authority? trx.actions.emplace_back(vector<permission_level>{{N(mycontract), N(active)}}, transfercurrency); only mycontract can be set,other account name can not get authority,because private key not store on eos node??

but whyvoid db_update_i64(int32_t iterator, account_name payer, const void* data, uint32_t len);,payer authority not needed?

chenlian2015 avatar Apr 04 '18 07:04 chenlian2015

For update, if there is no change in the total ram space, I believe the auth is not needed

andriantolie avatar Jul 03 '18 10:07 andriantolie