Questions tagged [singleton]
The singleton tag has no usage guidance.
5
questions
0
votes
2
answers
46
views
singleton table: "cannot create objects in table of another contract"
Newbie here struggling up the learning curve. I have a simple contract which updates a counter value in a singleton table every time its action is executed.
#include <eosio/eosio.hpp>
#include &...
0
votes
1
answer
42
views
eosio::singleton, action was done, but the blockchain showed error and the singleton action modsettings did not processed
Ask for help:
compile OK, deployed OK push action OK, chain show error:
[22:50:57.901] debug Produced block 3a21a2476657b28e... #25666 @ 2021-05-01T05:50:58.000 signed by eosio [trxs: 0, lib: 25665, ...
1
vote
1
answer
52
views
How to match object value from fc::variant which is std::pair type in contract unit test via Boost test?
This is example of object singletone table which i trying to test:
{
"rows": [{
"account": "ins",
"first_approve": {
"first": "apk",
"second": 1
...
3
votes
3
answers
1k
views
How to store contract state as singleton?
What is the best way to store fields specific for contract, for example if contract has 3 fields (2 strings, 1 uint64_t) and they can be changed?
Should I create new table for this, it would always be ...
2
votes
1
answer
388
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 ...