From d574bf7a6c0bd672331c268f32c4c09502e78731 Mon Sep 17 00:00:00 2001 From: gfanton <8671905+gfanton@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:05:13 +0100 Subject: [PATCH] chore: cleanup Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> --- gno.land/pkg/sdk/vm/types.go | 4 +--- tm2/pkg/bft/abci/types/types.go | 10 +++++----- tm2/pkg/sdk/types.go | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gno.land/pkg/sdk/vm/types.go b/gno.land/pkg/sdk/vm/types.go index e2649dc844c..442c2d4b138 100644 --- a/gno.land/pkg/sdk/vm/types.go +++ b/gno.land/pkg/sdk/vm/types.go @@ -1,8 +1,6 @@ package vm -import ( - "github.com/gnolang/gno/tm2/pkg/amino" -) +import "github.com/gnolang/gno/tm2/pkg/amino" // Public facing function signatures. // See convertArgToGno() for supported types. diff --git a/tm2/pkg/bft/abci/types/types.go b/tm2/pkg/bft/abci/types/types.go index b07dc598337..42376e712a6 100644 --- a/tm2/pkg/bft/abci/types/types.go +++ b/tm2/pkg/bft/abci/types/types.go @@ -99,12 +99,12 @@ type Response interface { } type ResponseBase struct { - Error Error `json:"error"` - Data []byte `json:"data"` - Events []Event `json:"events"` + Error Error + Data []byte + Events []Event - Log string `json:"log"` // nondeterministic - Info string `json:"info"` // nondeterministic + Log string // nondeterministic + Info string // nondeterministic } func (ResponseBase) AssertResponse() {} diff --git a/tm2/pkg/sdk/types.go b/tm2/pkg/sdk/types.go index bd4960e5c91..47395362f1a 100644 --- a/tm2/pkg/sdk/types.go +++ b/tm2/pkg/sdk/types.go @@ -23,8 +23,8 @@ type Handler interface { // Result is the union of ResponseDeliverTx and ResponseCheckTx plus events. type Result struct { abci.ResponseBase - GasWanted int64 `json:"gas_wanted"` - GasUsed int64 `json:"gas_used"` + GasWanted int64 + GasUsed int64 } // AnteHandler authenticates transactions, before their internal messages are handled.