Here is the code
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
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communitytypedef multi_index<N(demos), d> demo_table
the first parameter is table name, please keep same with your abi description