From cf32d71cefba54e4d38cc7f9129fa36815044cbb Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:14:12 +0100 Subject: [PATCH 1/3] feat: export sdk context --- types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/types.go b/types/types.go index e0be7cb..cadd85b 100644 --- a/types/types.go +++ b/types/types.go @@ -6,5 +6,5 @@ import "github.com/gnolang/gno/tm2/pkg/std" // along with the block information type TxData struct { Tx std.Tx `json:"tx"` - BlockNum uint64 `json:"blockNum"` + Ctx sdk.Context `json:"ctx"` } From 7b2e43d7f13141e782da9028695cfa661578e958 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:15:11 +0100 Subject: [PATCH 2/3] Update types.go --- types/types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/types.go b/types/types.go index cadd85b..4e3a9c0 100644 --- a/types/types.go +++ b/types/types.go @@ -1,6 +1,9 @@ package types -import "github.com/gnolang/gno/tm2/pkg/std" +import ( + "github.com/gnolang/gno/tm2/pkg/sdk" +) "github.com/gnolang/gno/tm2/pkg/std" + // TxData contains the single block transaction, // along with the block information From 2e0fd2b61287cf270ea42d52a48abacd8af69e5c Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:15:26 +0100 Subject: [PATCH 3/3] Update types.go --- types/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/types.go b/types/types.go index 4e3a9c0..ca76437 100644 --- a/types/types.go +++ b/types/types.go @@ -2,8 +2,8 @@ package types import ( "github.com/gnolang/gno/tm2/pkg/sdk" -) "github.com/gnolang/gno/tm2/pkg/std" - + "github.com/gnolang/gno/tm2/pkg/std" +) // TxData contains the single block transaction, // along with the block information