0

I'm doing this but i'm getting an error, what should i improve?

void mainloan::checkdaily(uint64_t loan_id)
{

  auto itr = loan_table.find(loan_id);
  auto borrower = itr->borr_name;


  eosio::transaction t;
  t.actions.emplace_back(
      permission_level(_self, "active"_n),
      _self,
      "calipd"_n, //fuction for calculating interest per day on principle amount
      std::make_tuple(*itr));
  t.delay_sec = 20; 
  t.send(now(), _self);
  eosio::print("transaction sent.");

  defer_table.emplace(get_self(), [&](auto &df) {
    df.df_id = defer_table.available_primary_key();
    df.transaction_date = current_time_point_sec();
  });
}

ERROR LOG

Error Details:
transaction declares authority '{"actor":"guru11111111","permission":"active"}', but does not have signatures for it under a provided delay of 20000 ms, provided permissions [{"actor":"guru11111111","permission":"eosio.code"}], provided keys [], and a delay max limit of 3888000000 ms

| improve this question | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.