From 90ccaf6cf11c552953b5d87a0db7ae639831b202 Mon Sep 17 00:00:00 2001 From: Michael Vandeberg Date: Thu, 3 May 2018 13:15:03 -0700 Subject: [PATCH] Add missing source file --- .../chain/generic_custom_operation_interpreter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/chain/generic_custom_operation_interpreter.cpp diff --git a/libraries/chain/generic_custom_operation_interpreter.cpp b/libraries/chain/generic_custom_operation_interpreter.cpp new file mode 100644 index 0000000000..013693a66f --- /dev/null +++ b/libraries/chain/generic_custom_operation_interpreter.cpp @@ -0,0 +1,12 @@ +#include + +namespace steem { namespace chain { + +std::string legacy_custom_name_from_type( const std::string& type_name ) +{ + auto start = type_name.find_last_of( ':' ) + 1; + auto end = type_name.find_last_of( '_' ); + return type_name.substr( start, end-start ); +} + +} } // steem::chain