From 5395b10fccf806cd68d26f53c6e145509dfbc6af Mon Sep 17 00:00:00 2001 From: Tanmay Date: Tue, 10 Oct 2023 23:39:20 -0400 Subject: [PATCH] add index to migrate CCTX --- x/crosschain/keeper/migrate_tss_funds.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/crosschain/keeper/migrate_tss_funds.go b/x/crosschain/keeper/migrate_tss_funds.go index 66701aaca9..71120c2c9a 100644 --- a/x/crosschain/keeper/migrate_tss_funds.go +++ b/x/crosschain/keeper/migrate_tss_funds.go @@ -48,9 +48,11 @@ func (k Keeper) MigrateTSSFundsForChain(ctx sdk.Context, chainID int64, amount s if !isFound { return types.ErrUnableToGetGasPrice } + index := fmt.Sprintf("%s-%s-%d-%s", currentTss.TssPubkey, newTss.TssPubkey, chainID, amount.String()) + cctx := types.CrossChainTx{ Creator: "", - Index: "", + Index: index, ZetaFees: sdkmath.Uint{}, RelayedMessage: fmt.Sprintf("%s:%s", common.CmdMigrateTssFunds, "Funds Migrator Admin Cmd"), CctxStatus: &types.Status{