feat: change ClientResponse.result struct

This commit is contained in:
zhaoweijie 2024-12-05 18:06:56 +08:00
parent f46b1a08ee
commit 93d969ce86

View File

@ -11,7 +11,7 @@ type ClientResponse[T any] struct {
NeedSeq bool `json:"needSeq,omitempty"`
Seq int `json:"seq,omitempty"`
Status string `json:"status,omitempty"`
Result any `json:"result,omitempty"`
Result T `json:"result,omitempty"`
IsInsnLimit bool `json:"isInsnLimit,omitempty"`
TotalGas int `json:"totalGas,omitempty"`
ExecutionGas int `json:"executionGas,omitempty"`