cosmos-sdk/core/testing/header.go
Alex | Interchain Labs b4e88cc517
test: v2 services helpers and demo using x/bank (#23057)
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
2025-01-14 00:45:41 +00:00

16 lines
253 B
Go

package coretesting
import (
"context"
"cosmossdk.io/core/header"
)
var _ header.Service = &TestHeaderService{}
type TestHeaderService struct{}
func (e TestHeaderService) HeaderInfo(ctx context.Context) header.Info {
return unwrap(ctx).header
}