Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Anything related to decentralized application (dApp) development, concepts, and possibilities with smart contracts, or technical questions for the development of smart contracts.
4
votes
1
answer
171
views
What are the differences between eosiocpp and g++
I am using time functions within my smart contracts and I'm seeing differences between eosiocpp and g++. The below compiles and executes with no problem using g++.
time_t rawtime;
tm * timeinfo;
…
3
votes
1
answer
774
views
Is it possible to call "updateauth" to change account keys from within a smart contract?
I am trying to write a smart contract that changes the keys of an account (not itself). The transaction will be of course be authorized by the account for which the keys are changing.
I feel like it …
8
votes
2
answers
492
views
Best practice to handle table migrations?
What is the best practice for migrating table when a member of a struct is added? For some structs, I have had no problems adding members, but for others I have. I get this error message:
$cleos get …
10
votes
3
answers
2k
views
How to do an inline transfer of a token?
When I perform a token transfer from the cleos command line, it works with no problems:
$ cleos push action eosio.token transfer '["rider2","vehicle1","1000.0000 TOK","initial"]' -p rider2
executed …
3
votes
2
answers
336
views
How to check balance of dynamically determined token contract?
If I am using eosio.token as my token contract (or I know my token contract during compile time), the following code will work.
accounts accountstable(N(eosio.token), account);
auto itr_a = accountst …
0
votes
How to check balance of dynamically determined token contract?
I solved this by saving an example asset from the "init" method. And then, when I need to find that asset type in the token contract, I just loop until I find it. Then I know that I'm on the right ass …
1
vote
0
answers
333
views
How do I add second and third indices to the multi_index object?
I have thoroughly read the documentation and isolated my problem down to a small set of sample code. I'm not sure where my problem is. I am trying to add multiple indices to a multi_index object so th …
0
votes
1
answer
979
views
How to pass a list / array / vector to an action? [duplicate]
I need to pass a list of integers to an action. It would be fine to use vectors or arrays, but I can't find one that works. Using vector in the smart contract compiles fine, but then I get this error …