Skip to content

Commit

Permalink
remove extra service registration (ava-labs#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur authored Nov 1, 2023
1 parent aa59dc4 commit 3d2b520
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin/evm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,6 @@ func newHandler(name string, service interface{}) (http.Handler, error) {
server := avalancheRPC.NewServer()
server.RegisterCodec(avalancheJSON.NewCodec(), "application/json")
server.RegisterCodec(avalancheJSON.NewCodec(), "application/json;charset=UTF-8")
if err := server.RegisterService(service, name); err != nil {
return nil, err
}

return server, server.RegisterService(service, name)
}

Expand Down

0 comments on commit 3d2b520

Please sign in to comment.