Decode output using top level trace

This commit is contained in:
Fridrik Asmundsson 2023-08-25 15:52:38 +00:00
parent ee3cdf0e97
commit 10a5480895

View File

@ -933,8 +933,13 @@ func (a *EthModule) EthTraceReplayBlockTransactions(ctx context.Context, blkNum
continue
}
output, err := decodePayload(ir.ExecutionTrace.MsgRct.Return, ir.ExecutionTrace.MsgRct.ReturnCodec)
if err != nil {
return nil, xerrors.Errorf("failed to decode payload: %w", err)
}
t := ethtypes.EthTraceReplayBlockTransaction{
Output: ir.MsgRct.Return,
Output: output,
TransactionHash: *txHash,
StateDiff: nil,
VmTrace: nil,