Skip to content

Commit

Permalink
fix make keeper ref
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Sep 25, 2024
1 parent d31c071 commit 0da4c1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/symStaking/keeper/symbiotic_state_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0da4c1a

Please sign in to comment.