EOSIO / eosio.cdt

EOSIO.CDT (Contract Development Toolkit) is a suite of tools used to build EOSIO contracts
http://eosio.github.io/eosio.cdt
MIT License
512 stars 288 forks source link

'eosiolib/currency.hpp' file not found #117

Closed xihuancoding closed 6 years ago

xihuancoding commented 6 years ago

all current github examples using the following signature:

void onTransfer(const eosio::currency::transfer& transfer);

Looks like currency.hpp is removed in eosio.cdt, then how to compile?

qpIlIpp commented 6 years ago

You can use -I=/pathto/eos/ parametr for example eosio-cpp ../src/pvp.cpp -o ../build/pvp/pvp.wasm -I=/mnt/d/EOS/eos/contracts

larryk85 commented 6 years ago

currency.hpp is removed. As it is a contract no longer supported by us, it was removed from cdt. You would have to supply your own copy for this. Or the better approach would be to use the token contract for your needs.