eos icon indicating copy to clipboard operation
eos copied to clipboard

how to add permission of any account to deffered_transaction?now seems only can add account permission of the contract self

Open chenlian2015 opened this issue 8 years ago • 5 comments

contract name is ocaskans

void send_deferred_transaction() {

using namespace eosio; auto trx = eosio::transaction(); transfer as = unpack_action_data();

test_action_action<N(oct), N(transfer)> transfercurrency; eosio::print("....send_deferred_transaction....oct:", N(oct), ",transfer:", N(transfer));

copy_data((char*)&as, sizeof(as), transfercurrency.data);

trx.actions.emplace_back(vector<permission_level>{{N(ocaskans), N(active)}}, transfercurrency); trx.send( 0xffffffffffffffff, now()+2 ); }

chenlian2015 avatar Apr 09 '18 10:04 chenlian2015

@chenlian2015 I have a similar problem 😢

navcsdev avatar Apr 11 '18 03:04 navcsdev

@navcsdev The problem has been solved

chenlian2015 avatar Apr 12 '18 08:04 chenlian2015

@navcsdev
private key not on eos node,so it impossible to achieve,You can try other ways to solve this business scenario.

chenlian2015 avatar Apr 12 '18 08:04 chenlian2015

@chenlian2015 How did you solve it?

navcsdev avatar Apr 12 '18 08:04 navcsdev

@navcsdev check the first comment here https://github.com/EOSIO/eos/issues/4326

andriantolie avatar Jul 04 '18 04:07 andriantolie