Co-authored-by: unknown unknown <unknown@unknown> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
18 lines
308 B
Go
18 lines
308 B
Go
package runtime
|
|
|
|
import (
|
|
"context"
|
|
|
|
"cosmossdk.io/core/header"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
var _ header.Service = (*HeaderService)(nil)
|
|
|
|
type HeaderService struct{}
|
|
|
|
func (h HeaderService) GetHeaderInfo(ctx context.Context) header.Info {
|
|
return sdk.UnwrapSDKContext(ctx).HeaderInfo()
|
|
}
|