Make "from" field of CallParam optional(adding omitempty)
It fixes the problem that it includes empty "from" field on icx_call.
@@ -22,7 +22,7 @@ type BlockHashParam struct {
}
type CallParam struct {
- FromAddress jsonrpc.Address `json:"from" validate:"optional,t_addr_eoa"`
+ FromAddress jsonrpc.Address `json:"from,omitempty" validate:"optional,t_addr_eoa"`
ToAddress jsonrpc.Address `json:"to" validate:"required,t_addr_score"`
DataType string `json:"dataType" validate:"required,call"`
Data interface{} `json:"data"`
