Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
VAIBHAVJINDAL3012 committed Oct 31, 2023
1 parent dc96028 commit d910185
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions clerk/side_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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#######")

Expand All @@ -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")

Expand Down

0 comments on commit d910185

Please sign in to comment.