diff --git a/programs/js_operation_serializer/main.cpp b/programs/js_operation_serializer/main.cpp index 5fb2a114..411325dc 100644 --- a/programs/js_operation_serializer/main.cpp +++ b/programs/js_operation_serializer/main.cpp @@ -16,6 +16,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include +#include #include #include #include @@ -95,6 +96,7 @@ struct js_name> template struct js_name> { static std::string name(){ return "bytes "+ fc::to_string(N); }; }; template struct js_name> { static std::string name(){ return "bytes "+ fc::to_string(N); }; }; template struct js_name< fc::optional > { static std::string name(){ return "optional " + js_name::name(); } }; +template struct js_name< fc::smart_ref > { static std::string name(){ return js_name::name(); } }; template<> struct js_name< object_id_type > { static std::string name(){ return "object_id_type"; } }; template struct js_name< fc::flat_set > { static std::string name(){ return "set " + js_name::name(); } }; template struct js_name< std::vector > { static std::string name(){ return "array " + js_name::name(); } }; @@ -221,6 +223,15 @@ struct serializer,false> static void init() { serializer::init(); } static void generate() {} }; + +template +struct serializer,false> +{ + static void init() { + serializer::init(); } + static void generate() {} +}; + template<> struct serializer,false> { @@ -361,12 +372,15 @@ int main( int argc, char** argv ) } std::cout << "\n"; + detail_ns::js_name::name("fee_parameters"); detail_ns::js_name::name("operation"); - detail_ns::js_name>::name("key_data"); detail_ns::js_name::name("operation_result"); detail_ns::js_name::name("header_extension"); detail_ns::js_name::name("worker_initializer"); - detail_ns::js_name>::name("vesting_policy_initializer"); + detail_ns::js_name::name("predicate"); + detail_ns::js_name::name("vesting_policy_initializer"); + detail_ns::serializer::init(); + detail_ns::serializer::init(); detail_ns::serializer::init(); detail_ns::serializer::init(); detail_ns::serializer::init();