New answers tagged

0

this was answered by the comments provided. in short you can not trust fully the contract as long as the keys controlling the account to which the contract is deployed are still in the hands of a person. the solution can do several things, two of them are mentioned below: You can multi sig the contract to trusted members of the community. You can resign the ...


1

a few things to consider: it is not advisable to compile on your servers. you need tbe full blown dev environment to be set up correctly (all dependencies) in order to compile successfuly; when eosio-ccp was reported as hanging in the past it was because there was some dependencies missing or not version aligned (clang, submodules, etc). if you try to ...


0

to get a better understand of how transactions make it to a block please read the following series of FAQs starting with this one and all that follow till the end. I hope it will help understand the topic better.


0

first of all please consult the multi-index table documentation: https://developers.eos.io/manuals/eosio.cdt/latest/how-to-guides/multi-index/index in your question you say you want to query the table without using the primary key and later you say you want to query it based on asset_id; but it seems asset_id is your primary key. I assume this is a typo and ...


0

If you are using EOSIO_DISPATCH with ACTION keyword, then replace ACTION keyword with [[eosio::action]] void from your .hpp file and remove EOSIO_DISPATCH from your .cpp file of smart contract. As EOSIO_DISPATCH blocks eosio::on_notify. Also check: [[eosio::on_notify("VALID_EOSIO_ACCOUNT_NAME::VALID_EOSIO_ACTION_NAME")]] Ref: https://developers.eos....


1

If you are using EOSIO_DISPATCH with ACTION keyword, then replace ACTION keyword with [[eosio::action]] void from your .hpp file and remove EOSIO_DISPATCH from your .cpp file of smart contract. As EOSIO_DISPATCH blocks eosio::on_notify. Also check: [[eosio::on_notify("VALID_EOSIO_ACCOUNT_NAME::VALID_EOSIO_ACTION_NAME")]] Ref: https://developers.eos....


0

On-chain CPU resource is only used if the transaction is successful.


0

The two answers to this question are links to external sites that are now broken. this is why answers that are links are frowned upon, links break and therefore your answer breaks. to actually auto increment the primary key say your multi index uses a uint64_t as its id. When emplacing into the table set the id like so. row.column_name = table_name....


Top 50 recent answers are included