eos
eos copied to clipboard
Getting error while calling transaction method of eoslib/transaction.hpp
i make a contract and try to call "transaction( transaction&& trx )" method but it is calling this method "transaction( const transaction& ) = delete;"

helloworld.cpp

helloworld.hpp

Output after running the code

Please check the code and let me know where is the error
According to the given definition, you can't use copy constructor there, instead, you will need to use move constructor. Try to move the Hello:trx isntead of copying it, i.e. eosio::print(eosio::transaction(std::move(Hello::trx)));
I'm going to close this issue because the above transaction smart contract api is outdated, if you encounter problem with new api, please open a new ticket. Thanks!