Questions tagged [constructor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
132 views

what is receiver account for and what is ds, in new version of eosio contract's constructor declaration

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 ...
Nirdesh Kumar Choudhary's user avatar
0 votes
1 answer
231 views

eos smart contract constructor

when is smart contract constructor triggered for the first time? I know it is triggered every time action is pushed, but what if i want something to be triggered when smart contract is deployed for ...
Bida's user avatar
  • 281
2 votes
1 answer
158 views

Constructor error message

I am writing a smart contract for use within the EOSIO system contract. I am receiving this error message multiple times: constructor for 'eosio::multi_index<13510798882111488, BP>::item' must ...
Michael Nash's user avatar
2 votes
1 answer
390 views

How do you construct a singleton in dawn4?

Looks like they changed the constructor for singletons or I am doing this incorrectly. Can anyone advise? #include <eosiolib/eosio.hpp> #include <eosiolib/singleton.hpp> using namespace ...
Magic Man Xpress's user avatar