Skip to content

Commit

Permalink
resolver: check error
Browse files Browse the repository at this point in the history
Co-authored-by: Yunshi Sun <yunshi@renproject.io>
  • Loading branch information
jazg and tok-kkk committed Oct 28, 2020
1 parent 1e10e5e commit 0fae782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ func (resolver *Resolver) QueryStat(ctx context.Context, id interface{}, params

func (resolver *Resolver) QueryFees(ctx context.Context, id interface{}, params *jsonrpc.ParamsQueryFees, req *http.Request) jsonrpc.Response {
response := resolver.handleMessage(ctx, id, jsonrpc.MethodQueryFees, *params, req, false)

if response.Error != nil{
return response
}
// Manually override the mint fee in the result, as it has changed in the
// contracts.
resBytes, err := json.Marshal(response.Result)
Expand Down

0 comments on commit 0fae782

Please sign in to comment.