eth/tracers: fix
This commit is contained in:
parent
bf165bba68
commit
4ea0d15966
|
@ -24,7 +24,7 @@ type CallFrame struct {
|
|||
Gas string `json:"gas"`
|
||||
GasUsed string `json:"gasUsed"`
|
||||
Input string `json:"input"`
|
||||
Output string `json:"output"`
|
||||
Output string `json:"output,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Calls []CallFrame `json:"calls,omitempty"`
|
||||
}
|
||||
|
@ -117,6 +117,9 @@ func bytesToHex(s []byte) string {
|
|||
}
|
||||
|
||||
func bigToHex(n *big.Int) string {
|
||||
if n == nil {
|
||||
return ""
|
||||
}
|
||||
return "0x" + n.Text(16)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue