feat: context on simulate error (#13435)

This commit is contained in:
emidev98
2022-10-03 22:36:56 +00:00
committed by GitHub
parent a975f67b24
commit c2f0c0f785
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ func (s txServer) Simulate(ctx context.Context, req *txtypes.SimulateRequest) (*
gasInfo, result, err := s.simulate(txBytes)
if err != nil {
return nil, err
return nil, status.Errorf(codes.Unknown, "%v With gas wanted: '%d' and gas used: '%d' ", err, gasInfo.GasWanted, gasInfo.GasUsed)
}
return &txtypes.SimulateResponse{