Browse Source

Format contract code as hexdata

Taylor Gerring 10 years ago
parent
commit
4ad8f1035b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rpc/api.go

+ 1 - 0
rpc/api.go

@@ -349,6 +349,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
 		if err != nil {
 			return err
 		}
+		contract.Code = newHexData(contract.Code).String()
 		*reply = contract
 
 	case "eth_newFilter":