Closed ajose01 closed 6 years ago
Hi ajose01! Do you have the eosiolib
inside the contracts
folder? action.hpp
is placed there.
Thanks for the reply. I do have it in there, and can confirm that action.hpp
is in there as well. It might be an EOS version thing?
For example... I get the same error even when trying to process an ABI from a gitclone of this repo.
➜ InfLabs git:(master) cd EOS-dApp-development-tutorial-part-2
➜ EOS-dApp-development-tutorial-part-2 git:(master) ls
CMakeLists.txt CMakeModules README.md contracts externals libraries
➜ EOS-dApp-development-tutorial-part-2 git:(master) cd contracts
➜ contracts git:(master) ls
CMakeLists.txt Marketplace Players eosiolib libc++ musl
➜ contracts git:(master) cd Marketplace
➜ Marketplace git:(master) ls
CMakeLists.txt Marketplace.abi Marketplace.cpp Marketplace.hpp
➜ Marketplace git:(master) eosiocpp -g M.abi Marketplace.cpp
2018-08-09T19:38:42.440 thread-0 abi_generator.hpp:68 ricardian_contracts ] Warning, no ricardian clauses found for Marketplace
2018-08-09T19:38:42.443 thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for buy
2018-08-09T19:38:42.443 thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for getbyid
2018-08-09T19:38:42.443 thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for add
2018-08-09T19:38:42.443 thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for update
2018-08-09T19:38:42.443 thread-0 abi_generator.hpp:75 ricardian_contracts ] Warning, no ricardian contract found for remove
/Users/angeljose/Apps/eosapps/InfLabs/EOS-dApp-development-tutorial-part-2/contracts/Marketplace/Marketplace.cpp:17:9: error: no
matching constructor for initialization of 'eosio::action'
action(vector<permission_level>(), N(anorak), N(transfer), make_tuple(buyer, _self, productPrice, string(""))).send();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I cloned the repo and I was able to generate the Marketplace.abi. Which version of EOSIO you're using? Can you try to rebuild the EOSIO with clean installation?
First off, as others have said... the tutorial is A++. Thanks 🙏 . I've tried to debug this on my own w/o much luck. I may just be overlooking something obvious, since I don't see others running into this issue. When trying to generate the ABI I hit this:
Marketplace.hpp:
Marketplace.cpp:
Thanks for any clues.