Commit 6ebe3b48 authored by ValarDragon's avatar ValarDragon
Browse files

Fix that init genesis logger line

parent fa7faa9a
Showing with 3 additions and 1 deletion
+3 -1
package lockup
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/x/lockup/keeper"
"github.com/osmosis-labs/osmosis/x/lockup/types"
......@@ -12,7 +14,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
k.SetLastLockID(ctx, genState.LastLockId)
for i, lock := range genState.Locks {
if i%10000 == 0 {
ctx.Logger().Info("lock number %d, entry %d\n", lock.ID, i)
ctx.Logger().Info(fmt.Sprintf("lock number %d, entry %d\n", lock.ID, i))
}
// reset lock's main operation is to store reference queues for iteration
if err := k.ResetLock(ctx, lock); err != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment