eos icon indicating copy to clipboard operation
eos copied to clipboard

Getting error while calling transaction method of eoslib/transaction.hpp

Open rupaliathashcode opened this issue 8 years ago • 1 comments

i make a contract and try to call "transaction( transaction&& trx )" method but it is calling this method "transaction( const transaction& ) = delete;" image

helloworld.cpp image

helloworld.hpp image

Output after running the code image

Please check the code and let me know where is the error

rupaliathashcode avatar Mar 08 '18 13:03 rupaliathashcode

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!

andriantolie avatar Jul 03 '18 07:07 andriantolie