Questions tagged [eosiocpp]

Questions about the deprecated (old) eosiocpp compiler tool. These are different from the new Version eosio-cpp.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers

unordered map in eosio-cpp

I want to have an unordered_map inside a table so that I can have O(1) entry and retrieval. Can someone please link me to a snippet which implements that? I am new to cpp.
Vishal Singh's user avatar
1 vote
2 answers

EOS Block Producer Schedule

I have followed the Boot Bios sequence of eosio and setup a eos private blockchain. The problem is my even though i have created also Block producers and also voted for them still the blocks are ...
Ridham CPP's user avatar
1 vote
0 answers

Why can eosiocpp not do normal operations on std::vector<std::string>?

I have two types: struct typeA { std::vector<std::string> vec; } struct typeB { std::vector<std::string> vec; } but I can't seem to get the 2 vecs to mix as eosiocpp seems to be ...
Chrysm_Seal's user avatar
0 votes
1 answer

Alternative to std::ifstream for eosio contract

I'm watching for an alternative to "std::ifstream" because "#include " can't include as header in a contract. My code is: std::istream& operator>>(std::istream& str, ...
Eosio's user avatar
  • 1
0 votes
0 answers

Error unlinkable block jungle4 testnet fullnode

Iam trying to build a jungle4 testnet fullnode but when it reachs certain blocks, there are info about block number not accepted from mandelAPI:9876 with error unlinkable block ...
Trung Hieu's user avatar
0 votes
0 answers

How to test my static Public function using Hydra

The heading really explains it all, I am writing a smart contract for which in its header file I have defined two static public functions, which I want to test using Hydra testing library can anyone ...
Taaha Waseem's user avatar
0 votes
1 answer

How can i convert a time_point to a string?

I want to convert a time_point variable to a string using eos studio. I need to insert a time_point variable in a string in order to creare the object of my smart contract.
claudia's user avatar
0 votes
1 answer

How can I create a table in an .hpp for a general contract? (Using the CDT)

THE STRUCTURE OF MY PROJECT I am working in mycontract.cpp, which imports myheader.hpp WHAT I WANT I want to create a table in myheader.hpp, for a generic contract, "IN THEORY" as follows: struct [...
Riccardo Persiani's user avatar