fix(x/auth): remove misleading gas wanted value from tx simulation failure response (backport #18772) (#18775)

Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2023-12-18 09:54:37 +00:00
committed by GitHub
co-authored by yihuang Julien Robert
parent e284927eb6
commit 3fa3e06f5f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func (s txServer) Simulate(ctx context.Context, req *txtypes.SimulateRequest) (*
gasInfo, result, err := s.simulate(txBytes)
if err != nil {
return nil, status.Errorf(codes.Unknown, "%v With gas wanted: '%d' and gas used: '%d' ", err, gasInfo.GasWanted, gasInfo.GasUsed)
return nil, status.Errorf(codes.Unknown, "%v with gas used: '%d'", err, gasInfo.GasUsed)
}
return &txtypes.SimulateResponse{