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?

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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