#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
#include <../eosio.token.hpp>

using namespace eosio;

These are the codes that i added for dependency at start but the compiler can't seem to find the function unpack_action_data (the other parts of the code follows the addressbook example in the developer portal)

Any ideas?

Edit : error is shown below gihab.cpp:84:18: error: no matching function for call to 'unpack_action_data' auto data = unpack_action_data(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/eosio.cdt/bin/../include/eosiolib/action.hpp:48:6: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T' T unpack_action_data() {

  • Where is the function unpack_action_data define in new version of EOSIO code ? – Nirdesh Kumar Choudhary Dec 14 '18 at 8:55
  • eosiolib/action.hpp – junep89 Dec 17 '18 at 6:24
  • You need to import action.hpp because in my version it is not imported in my eosio.token.hpp . – Nirdesh Kumar Choudhary Dec 17 '18 at 9:08
  • very odd. Thanks nonetheless, I've got it to work! – junep89 Dec 17 '18 at 13:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.