From 1a0c58e3138b7596cfc8e7fe8154d33b35dda004 Mon Sep 17 00:00:00 2001 From: Yun Yeo Date: Thu, 8 Jul 2021 16:02:00 +0900 Subject: [PATCH] fix treasury migration bug --- x/treasury/legacy/v05/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/treasury/legacy/v05/migrate.go b/x/treasury/legacy/v05/migrate.go index 1e28c1ca0..6e4402c76 100644 --- a/x/treasury/legacy/v05/migrate.go +++ b/x/treasury/legacy/v05/migrate.go @@ -36,7 +36,7 @@ func Migrate( continue } - epochStates[i] = v05treasury.EpochState{ + epochStates[i-cumulativeEpochs] = v05treasury.EpochState{ Epoch: uint64(i - cumulativeEpochs), TaxReward: treasuryGenState.TRs[i], SeigniorageReward: treasuryGenState.SRs[i],