2

You may have written several constructors for your BP class, but do you have a default constructor? All classes that are to be used as multi_index arrays require that the class has a default constructor, even if it is blank. The default constructor for BP would look like: class BP { // Your stuff here public: BP(){/* Your default constructor here */} };...


1

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.


1

I believe it is triggered when they are deployed using "set contract" on cleos. Since there are no gas fees in EOS, it might not be a bad idea to add an initiation action for safety. However, it would require you making sure that there are no security risks and you set the right authority check in-line. They did it this way for eosbetcasino https://gitlab....


1

I am not sure what you are trying to do , so I just made it compile for you. template<uint64_t SingletonName, typename T> class singleton first parameter is N(simple) e.g. singleton name , second is a C++ type this singleton holds Singleton constructor Say if scope and code is the same and same as owner of a contract then use contract::_self or ...


Only top voted, non community-wiki answers of a minimum length are eligible