From d9101857000144ed6bf8d8628645a2ea418e1c37 Mon Sep 17 00:00:00 2001 From: Vaibhav Jindal Date: Tue, 31 Oct 2023 21:34:18 +0530 Subject: [PATCH] testing --- clerk/side_handler.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/clerk/side_handler.go b/clerk/side_handler.go index c3c28d396..cdaac8506 100644 --- a/clerk/side_handler.go +++ b/clerk/side_handler.go @@ -84,10 +84,10 @@ func SideHandleMsgEventRecord(ctx sdk.Context, k Keeper, msg types.MsgEventRecor k.Logger(ctx).Error("##########3333333333333#######") - if eventLog.ValidatorId.Uint64() != msg.ID.Uint64() { - k.Logger(ctx).Error("ID in message doesn't match with id in log", "msgId", msg.ID, "validatorIdFromTx", eventLog.ValidatorId) - return hmCommon.ErrorSideTx(k.Codespace(), common.CodeInvalidMsg) - } + // if eventLog.ValidatorId.Uint64() != msg.ID.Uint64() { + // k.Logger(ctx).Error("ID in message doesn't match with id in log", "msgId", msg.ID, "validatorIdFromTx", eventLog.ValidatorId) + // return hmCommon.ErrorSideTx(k.Codespace(), common.CodeInvalidMsg) + // } k.Logger(ctx).Error("##########4444444444444#######") @@ -99,11 +99,11 @@ func SideHandleMsgEventRecord(ctx sdk.Context, k Keeper, msg types.MsgEventRecor k.Logger(ctx).Error("##########OUT -> Value of eventLog.NewAmount#############", eventLog.NewAmount) - // check nonce - if eventLog.Nonce.Uint64() != msg.Nonce { - k.Logger(ctx).Error("Nonce in message doesn't match with nonce in log", "msgNonce", msg.Nonce, "nonceFromTx", eventLog.Nonce) - return hmCommon.ErrorSideTx(k.Codespace(), common.CodeInvalidMsg) - } + // // check nonce + // if eventLog.Nonce.Uint64() != msg.Nonce { + // k.Logger(ctx).Error("Nonce in message doesn't match with nonce in log", "msgNonce", msg.Nonce, "nonceFromTx", eventLog.Nonce) + // return hmCommon.ErrorSideTx(k.Codespace(), common.CodeInvalidMsg) + // } k.Logger(ctx).Debug("✅ Successfully validated External call for stake update msg")