1

In the new version of eosio we declare the constructor as :

addressbook(name receiver, name code, datastream<const char *> ds) : contract(receiver, code, ds){}

How does datastream ds work here and what is the meaning of receiver?

0

A little late, but this may help people in the future. I know that the receiver is the contract that receives an action, and code is the account that owns the contract that is being executed during the initial action. I am guessing the datastream ds has to do with serialization and deserialization of data from the contract.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.