feat: change ClientResponse.result struct
This commit is contained in:
@@ -8,14 +8,10 @@ type HttpResponse[D any] struct {
|
||||
|
||||
// ClientResponse represents a generic response structure
|
||||
type ClientResponse[T any] struct {
|
||||
NeedSeq bool `json:"needSeq,omitempty"`
|
||||
Seq int `json:"seq,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Result struct {
|
||||
Data T `json:"data,omitempty"`
|
||||
Count int `json:"count,omitempty"`
|
||||
Code int `json:"code,omitempty"`
|
||||
} `json:"result,omitempty"`
|
||||
NeedSeq bool `json:"needSeq,omitempty"`
|
||||
Seq int `json:"seq,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
Result any `json:"result,omitempty"`
|
||||
IsInsnLimit bool `json:"isInsnLimit,omitempty"`
|
||||
TotalGas int `json:"totalGas,omitempty"`
|
||||
ExecutionGas int `json:"executionGas,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user