Sync from fork #74
@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* (evm) [\#1187](https://github.com/evmos/ethermint/pull/1187) Fix `TxIndex` value (expected 0, actual 1) when trace the first tx of a block via `debug_traceTransaction` api
|
||||||
* (rpc) [\#1190](https://github.com/evmos/ethermint/issues/1190) Fix `UnmarshalJSON` panig of breaking EVM and fee market `Params`.
|
* (rpc) [\#1190](https://github.com/evmos/ethermint/issues/1190) Fix `UnmarshalJSON` panig of breaking EVM and fee market `Params`.
|
||||||
* (rpc) [#1179](https://github.com/evmos/ethermint/pull/1179) Fix gas used in traceTransaction response.
|
* (rpc) [#1179](https://github.com/evmos/ethermint/pull/1179) Fix gas used in traceTransaction response.
|
||||||
|
|
||||||
|
@ -398,7 +398,10 @@ func (k Keeper) TraceTx(c context.Context, req *types.QueryTraceTxRequest) (*typ
|
|||||||
|
|
||||||
tx := req.Msg.AsTransaction()
|
tx := req.Msg.AsTransaction()
|
||||||
txConfig.TxHash = tx.Hash()
|
txConfig.TxHash = tx.Hash()
|
||||||
|
if len(req.Predecessors) > 0 {
|
||||||
txConfig.TxIndex++
|
txConfig.TxIndex++
|
||||||
|
}
|
||||||
|
|
||||||
result, _, err := k.traceTx(ctx, cfg, txConfig, signer, tx, req.TraceConfig, false)
|
result, _, err := k.traceTx(ctx, cfg, txConfig, signer, tx, req.TraceConfig, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// error will be returned with detail status from traceTx
|
// error will be returned with detail status from traceTx
|
||||||
|
Loading…
Reference in New Issue
Block a user