Questions tagged [constructor]
The constructor tag has no usage guidance.
4
questions
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 ...
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 ...
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 ...
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 ...