2

Here is the code

enter image description here

I deployed it with the following command:

cleos set contract . demo.wast demo.abi -p demo

and query it with:

cleos get table demo demo demos
1
typedef multi_index<N(demos), d> demo_table

the first parameter is table name, please keep same with your abi description

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.