From 3e81438aed08a4493231f9d06388531042de69c1 Mon Sep 17 00:00:00 2001 From: ddomeke Date: Thu, 5 Jun 2025 11:06:58 +0300 Subject: [PATCH] to value omitempty --- etherclient/extras.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etherclient/extras.go b/etherclient/extras.go index 9121734..bb9875e 100644 --- a/etherclient/extras.go +++ b/etherclient/extras.go @@ -21,7 +21,7 @@ import ( // TraceCallTransaction contains the fields of the to-be-simulated transaction. type TraceCallTransaction struct { From string `json:"from"` - To string `json:"to"` + To string `json:"to,omitempty"` Gas *hexutil.Big `json:"gas,omitempty"` GasPrice *hexutil.Big `json:"gasPrice,omitempty"` Value *hexutil.Big `json:"value,omitempty"`