Skip to content

Commit 026e6f0

Browse files
authored
Fix submit encrypted tx height check (#114)
1 parent f3764ae commit 026e6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/pep/keeper/msg_server_submit_encrypted_tx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (k msgServer) SubmitEncryptedTx(goCtx context.Context, msg *types.MsgSubmit
3434

3535
var maxHeight uint64
3636
queuedKey, found := k.GetQueuedPubKey(ctx)
37-
if !found {
37+
if !found || (queuedKey.Expiry == 0 && len(queuedKey.PublicKey) == 0) {
3838
activeKey, foundActiveKey := k.GetActivePubKey(ctx)
3939
if !foundActiveKey {
4040
ctx.EventManager().EmitEvent(

0 commit comments

Comments
 (0)