chain-api Serialize json to binary hex, report error
When I was testing, I had a problem. abi_json_to_bin Interface report error
128890ms thread-0 chain_api_plugin.cpp:75 operator() ] Exception encountered while processing chain.abi_json_to_bin: {"code":3040002,"name":"invalid_action_args_exception","message":"Invalid Action Arguments","stack":[{"context":{"level":"warn","file":"chain_plugin.cpp","line":501,"method":"abi_json_to_bin","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"'${args}' is invalid args for action '${action}' code '${code}'","data":{"args":{"from":"currency","to":"eosio","quantity":1000},"action":"transfer","code":"currency"}},{"context":{"level":"error","file":"variant.cpp","line":565,"method":"get_string","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"Invalid cast from type '${type}' to string","data":{"type":"uint64_type"}},{"context":{"level":"warn","file":"abi_serializer.cpp","line":329,"method":"variant_to_binary","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"","data":{"type":"asset","var":1000}},{"context":{"level":"warn","file":"abi_serializer.cpp","line":329,"method":"variant_to_binary","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"","data":{"type":"transfer","var":{"from":"currency","to":"eosio","quantity":1000}}},{"context":{"level":"warn","file":"abi_serializer.cpp","line":341,"method":"variant_to_binary","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"","data":{"type":"transfer","var":{"from":"currency","to":"eosio","quantity":1000}}},{"context":{"level":"warn","file":"chain_plugin.cpp","line":504,"method":"abi_json_to_bin","hostname":"","thread_name":"thread-0","timestamp":"2018-04-18T14:02:08.890"},"format":"","data":{"params.code":"currency","params.action":"transfer","params.args":{"from":"currency","to":"eosio","quantity":1000}}}]}
command line: curl http://127.0.0.1:8888/v1/chain/abi_json_to_bin -X POST -d '{"code":"currency","action":"transfer","args":{"from":"currency","to":"eosio","quantity":1000}}'