forked from steemit/steem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faad875
commit 90ccaf6
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <steem/chain/generic_custom_operation_interpreter.hpp> | ||
|
||
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 |