Skip to content

Commit 0fb854f

Browse files
Ciferclaude
andcommitted
Add omitempty to BlockHash and TransactionHash in ActionTrace
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89f8328 commit 0fb854f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

x/vm/types/action_trace.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ type StateDiff map[common.Address]AccountDiff
1919

2020
// ActionTrace represents single interaction with blockchain (OpenEthereum-style trace).
2121
type ActionTrace struct {
22-
Subtraces uint64 `json:"subtraces"`
23-
TraceAddress []uint32 `json:"traceAddress"`
24-
TraceType string `json:"type"`
25-
Action TAction `json:"action"`
26-
Result *TResult `json:"result,omitempty"`
27-
Error string `json:"error,omitempty"`
28-
BlockHash common.Hash `json:"blockHash"`
29-
BlockNumber int64 `json:"blockNumber"`
30-
TransactionHash common.Hash `json:"transactionHash"`
31-
TransactionPosition uint64 `json:"transactionPosition"`
22+
Subtraces uint64 `json:"subtraces"`
23+
TraceAddress []uint32 `json:"traceAddress"`
24+
TraceType string `json:"type"`
25+
Action TAction `json:"action"`
26+
Result *TResult `json:"result,omitempty"`
27+
Error string `json:"error,omitempty"`
28+
BlockHash common.Hash `json:"blockHash,omitempty"`
29+
BlockNumber int64 `json:"blockNumber"`
30+
TransactionHash common.Hash `json:"transactionHash,omitempty"`
31+
TransactionPosition uint64 `json:"transactionPosition"`
3232
}
3333

3434
// TAction represents the trace action model (Parity/OpenEthereum style).

0 commit comments

Comments
 (0)