Fix mint metric (#7024)
* remove metric * only emit when valid int64 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
1adcb6b680
commit
dda9bd8333
|
@ -39,7 +39,9 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
if mintedCoin.Amount.IsInt64() {
|
||||
defer telemetry.ModuleSetGauge(types.ModuleName, float32(mintedCoin.Amount.Int64()), "minted_tokens")
|
||||
}
|
||||
|
||||
ctx.EventManager().EmitEvent(
|
||||
sdk.NewEvent(
|
||||
|
|
Loading…
Reference in New Issue