Skip to content

Commit

Permalink
chore: default noop GetGenesis in mock
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <norman@samourai.coop>
  • Loading branch information
n0izn0iz committed Aug 7, 2024
1 parent 0a31d61 commit 0632c43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fetch/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package fetch
import (
"context"

"github.com/gnolang/gno/gno.land/pkg/gnoland"
core_types "github.com/gnolang/gno/tm2/pkg/bft/rpc/core/types"
bft_types "github.com/gnolang/gno/tm2/pkg/bft/types"

clientTypes "github.com/gnolang/tx-indexer/client/types"
"github.com/gnolang/tx-indexer/events"
Expand Down Expand Up @@ -50,7 +48,7 @@ func (m *mockClient) GetGenesis() (*core_types.ResultGenesis, error) {
return m.getGenesisFn()
}

return &core_types.ResultGenesis{Genesis: &bft_types.GenesisDoc{AppState: gnoland.GnoGenesisState{}}}, nil
return nil, nil
}

func (m *mockClient) GetBlockResults(blockNum uint64) (*core_types.ResultBlockResults, error) {
Expand Down

0 comments on commit 0632c43

Please sign in to comment.