Преглед изворни кода

CallResult空值还是返回一下

skyfffire пре 2 година
родитељ
комит
a24ab0f8ed
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      internal/ethapi/call_result.go

+ 2 - 2
internal/ethapi/call_result.go

@@ -4,7 +4,7 @@ import "github.com/ethereum/go-ethereum/common/hexutil"
 
 
 // CallResult is the result of one call.
 // CallResult is the result of one call.
 type CallResult struct {
 type CallResult struct {
-	Return  hexutil.Bytes `json:"return,omitempty"`
-	Msg     string        `json:"message,omitempty"`
+	Return  hexutil.Bytes `json:"return"`
+	Msg     string        `json:"message"`
 	Success bool          `json:"state"`
 	Success bool          `json:"state"`
 }
 }