From 0077fa2a98bf3104525de5c3e55e9b84397a2229 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sun, 12 Mar 2023 15:30:05 +0200 Subject: [PATCH] make gen --- chain/index/interface.go | 3 ++- chain/index/msgindex.go | 3 ++- chain/index/msgindex_test.go | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/chain/index/interface.go b/chain/index/interface.go index c45a69361..bdc8d5e92 100644 --- a/chain/index/interface.go +++ b/chain/index/interface.go @@ -4,8 +4,9 @@ import ( "context" "errors" - "github.com/filecoin-project/go-state-types/abi" "github.com/ipfs/go-cid" + + "github.com/filecoin-project/go-state-types/abi" ) var ErrNotFound = errors.New("message not found") diff --git a/chain/index/msgindex.go b/chain/index/msgindex.go index 425d149cc..b89d605c9 100644 --- a/chain/index/msgindex.go +++ b/chain/index/msgindex.go @@ -10,14 +10,15 @@ import ( "sync" "time" + "github.com/ipfs/go-cid" logging "github.com/ipfs/go-log/v2" _ "github.com/mattn/go-sqlite3" "golang.org/x/xerrors" "github.com/filecoin-project/go-state-types/abi" + "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-project/lotus/chain/types" - "github.com/ipfs/go-cid" ) var log = logging.Logger("msgindex") diff --git a/chain/index/msgindex_test.go b/chain/index/msgindex_test.go index f6b0a1c90..7ed58d82d 100644 --- a/chain/index/msgindex_test.go +++ b/chain/index/msgindex_test.go @@ -8,14 +8,15 @@ import ( "testing" "time" + "github.com/ipfs/go-cid" + "github.com/ipfs/go-libipfs/blocks" + "github.com/stretchr/testify/require" + "github.com/filecoin-project/go-address" + "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/chain/types/mock" - "github.com/ipfs/go-cid" - "github.com/ipfs/go-libipfs/blocks" - - "github.com/stretchr/testify/require" ) func TestBasicMsgIndex(t *testing.T) {