Questions tagged [constructor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
106 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 ...
0
votes
1answer
170 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 ...
2
votes
1answer
135 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 ...
2
votes
1answer
362 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 ...