13 lines
358 B
C++
13 lines
358 B
C++
#include <graphene/peerplays_sidechain/ethereum/utils.hpp>
|
|
|
|
#include <fc/crypto/hex.hpp>
|
|
|
|
namespace graphene { namespace peerplays_sidechain { namespace ethereum {
|
|
|
|
bytes parse_hex(const std::string &str) {
|
|
bytes vec(str.size() / 2);
|
|
fc::from_hex(str, vec.data(), vec.size());
|
|
return vec;
|
|
}
|
|
|
|
}}} // namespace graphene::peerplays_sidechain::ethereum
|