Skip to content

Commit

Permalink
Merge branch 'dev_master' into testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
zuuluuz committed Feb 28, 2019
2 parents 21b33a2 + 1c455ea commit f9b8c9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contracts/graphenelib/print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,26 @@ namespace graphene {
prints(val?"true":"false");
}

inline void print( public_key val){
print("0x");
printhex(val.data,sizeof(val.data));
}
inline void print( signature val){
print("0x");
printhex(val.data,sizeof(val.data));
}
inline void print( checksum256 val){
print("0x");
printhex(val.hash,sizeof(val.hash));
}
inline void print( checksum160 val){
print("0x");
printhex(val.hash,sizeof(val.hash));
}
inline void print( checksum512 val){
print("0x");
printhex(val.hash,sizeof(val.hash));
}

template<typename T>
inline void print( T&& t ) {
Expand Down
2 changes: 2 additions & 0 deletions libraries/chain/abi_serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void abi_serializer::configure_built_in_types()
built_in_types.emplace("bytes", pack_unpack<bytes>());
built_in_types.emplace("string", pack_unpack<string>());


built_in_types.emplace("block_id_type", pack_unpack<checksum160_type>());
built_in_types.emplace("checksum160", pack_unpack<checksum160_type>());
built_in_types.emplace("checksum256", pack_unpack<checksum256_type>());
built_in_types.emplace("checksum512", pack_unpack<checksum512_type>());
Expand Down

0 comments on commit f9b8c9a

Please sign in to comment.