Skip to content

Commit

Permalink
Merge pull request ethereum#31 from etclabscore/fix/orpc-disc-servers…
Browse files Browse the repository at this point in the history
…-field

Fix/orpc disc servers field
  • Loading branch information
meowsbits authored Sep 3, 2019
2 parents 5a37106 + 63af46e commit 850a31a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ func (s *RPCService) Discover() (schema *OpenRPCDiscoverSchemaT, err error) {
if s.server.OpenRPCSchemaRaw == "" {
return nil, errOpenRPCDiscoverUnavailable
}
schema = &OpenRPCDiscoverSchemaT{}
schema = &OpenRPCDiscoverSchemaT{
Servers: make([]map[string]interface{}, 0),
}
err = json.Unmarshal([]byte(s.server.OpenRPCSchemaRaw), schema)
if err != nil {
log.Crit("openrpc json umarshal", "error", err)
Expand Down

0 comments on commit 850a31a

Please sign in to comment.