Skip to content

Commit 408af15

Browse files
authored
fix(x/deployment): skip non matching denom during migration (#2058)
Signed-off-by: Artur Troian <troian@users.noreply.github.com> Co-authored-by: Artur Troian <troian@users.noreply.github.com>
1 parent 2d606d3 commit 408af15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x/deployment/keeper/abci.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func (k Keeper) EndBlocker(ctx context.Context) error {
5858
return true, err
5959
}
6060

61+
if srcCoin.Denom != burnCoin.Denom {
62+
return false, nil
63+
}
64+
6165
burnCoin = burnCoin.Add(srcCoin)
6266
mintCoin = mintCoin.Add(dstCoin)
6367

0 commit comments

Comments
 (0)