@@ -42,17 +42,17 @@ type callLog struct {
42
42
}
43
43
44
44
type callFrame struct {
45
- Type vm.OpCode `json:"-"`
46
- From common.Address `json:"from"`
47
- Gas uint64 `json:"gas"`
48
- GasUsed uint64 `json:"gasUsed"`
49
- To common.Address `json:"to,omitempty" rlp:"optional"`
50
- Input []byte `json:"input" rlp:"optional"`
51
- Output []byte `json:"output,omitempty" rlp:"optional"`
52
- Error string `json:"error,omitempty" rlp:"optional"`
53
- Revertal string `json:"revertReason,omitempty"`
54
- Calls []callFrame `json:"calls,omitempty" rlp:"optional"`
55
- Logs []callLog `json:"logs,omitempty" rlp:"optional"`
45
+ Type vm.OpCode `json:"-"`
46
+ From common.Address `json:"from"`
47
+ Gas uint64 `json:"gas"`
48
+ GasUsed uint64 `json:"gasUsed"`
49
+ To common.Address `json:"to,omitempty" rlp:"optional"`
50
+ Input []byte `json:"input" rlp:"optional"`
51
+ Output []byte `json:"output,omitempty" rlp:"optional"`
52
+ Error string `json:"error,omitempty" rlp:"optional"`
53
+ RevertReason string `json:"revertReason,omitempty"`
54
+ Calls []callFrame `json:"calls,omitempty" rlp:"optional"`
55
+ Logs []callLog `json:"logs,omitempty" rlp:"optional"`
56
56
// Placed at end on purpose. The RLP will be decoded to 0 instead of
57
57
// nil if there are non-empty elements after in the struct.
58
58
Value * big.Int `json:"value,omitempty" rlp:"optional"`
@@ -84,7 +84,7 @@ func (f *callFrame) processOutput(output []byte, err error) {
84
84
return
85
85
}
86
86
if unpacked , err := abi .UnpackRevert (output ); err == nil {
87
- f .Revertal = unpacked
87
+ f .RevertReason = unpacked
88
88
}
89
89
}
90
90
0 commit comments