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 Answer 1

typedef multi_index<N(demos), d> demo_table

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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