Does anyone have the 'somefunc' below to store bytes (specifically bytes4) as a string? Ideally something to get method_s in the code below:
contract Test{
bytes4 public method;
string public method_s;
function Test() {
method = this.get_f.selector;
}
function makeString(){
method_s = somefunc(method);
}
}
So I need method = 0x0cb9ef7a and method_s = "0x0cb9ef7a"
Many thanks in advance