From 0da4c1a5331ca5d2f45ddca1300bd62ea5db27ba Mon Sep 17 00:00:00 2001 From: georgiypetrov Date: Wed, 25 Sep 2024 16:23:43 +0400 Subject: [PATCH] fix make keeper ref --- x/symStaking/keeper/symbiotic_state_change.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/symStaking/keeper/symbiotic_state_change.go b/x/symStaking/keeper/symbiotic_state_change.go index 8efd8a5af..103604452 100644 --- a/x/symStaking/keeper/symbiotic_state_change.go +++ b/x/symStaking/keeper/symbiotic_state_change.go @@ -125,7 +125,7 @@ func (k *Keeper) CacheBlockHash(blockHash string, height int64) { k.cachedBlockHash.Height = height } -func (k Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) error { +func (k *Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) error { if k.networkMiddlewareAddress == "" { panic("middleware address is not set") } @@ -172,7 +172,7 @@ func (k Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) error { return nil } -func (k Keeper) GetFinalizedBlockHash(ctx context.Context) (string, error) { +func (k *Keeper) GetFinalizedBlockHash(ctx context.Context) (string, error) { var err error var block Block @@ -207,7 +207,7 @@ func (k Keeper) GetFinalizedBlockHash(ctx context.Context) (string, error) { return block.Data.Message.Body.ExecutionPayload.BlockHash, nil } -func (k Keeper) GetBlockByHash(ctx context.Context, blockHash string) (*types.Block, error) { +func (k *Keeper) GetBlockByHash(ctx context.Context, blockHash string) (*types.Block, error) { var block *types.Block client, err := ethclient.Dial(k.apiUrls.GetEthApiUrl()) if err != nil {