From 74780ccbdc95b699e2a4f2bac03d90dd13525938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Luque?= Date: Thu, 25 Jun 2026 10:40:50 +0200 Subject: [PATCH] fix(poa): format staking_tokens as decimal string --- x/poa/keeper/keeper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/poa/keeper/keeper.go b/x/poa/keeper/keeper.go index 2934e41..3113ca3 100644 --- a/x/poa/keeper/keeper.go +++ b/x/poa/keeper/keeper.go @@ -283,7 +283,7 @@ func (k Keeper) ExecuteRemoveValidator(ctx sdk.Context, validatorAddress string) types.EventTypeRemoveValidator, sdk.NewAttribute(types.AttributeValidator, validatorAddress), sdk.NewAttribute(types.AttributeHeight, fmt.Sprintf("%d", ctx.BlockHeight())), - sdk.NewAttribute(types.AttributeStakingTokens, fmt.Sprintf("%d", validator.Tokens)), + sdk.NewAttribute(types.AttributeStakingTokens, validator.Tokens.String()), ), ) @@ -313,7 +313,7 @@ func (k Keeper) ExecuteSelfRemoveValidator(ctx sdk.Context, validatorAddress str types.EventTypeSelfRemoveValidator, sdk.NewAttribute(types.AttributeValidator, valAddress.String()), sdk.NewAttribute(types.AttributeHeight, fmt.Sprintf("%d", ctx.BlockHeight())), - sdk.NewAttribute(types.AttributeStakingTokens, fmt.Sprintf("%d", validator.Tokens)), + sdk.NewAttribute(types.AttributeStakingTokens, validator.Tokens.String()), ), )