Skip to content

Commit

Permalink
drop debug panic
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Mar 29, 2023
1 parent 5da31b1 commit 23f7ef4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions relayer/chains/penumbra/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1354,12 +1354,8 @@ func (cc *PenumbraProvider) MsgConnectionOpenTry(msgOpenInit provider.Connection
return cosmos.NewCosmosMessage(msg), nil
}

var called = 0

func (cc *PenumbraProvider) MsgConnectionOpenAck(msgOpenTry provider.ConnectionInfo, proof provider.ConnectionProof) (provider.RelayerMessage, error) {
if called != 0 {
panic("DUPLICATE CALL")
}
signer, err := cc.Address()
if err != nil {
return nil, err
Expand All @@ -1386,8 +1382,6 @@ func (cc *PenumbraProvider) MsgConnectionOpenAck(msgOpenTry provider.ConnectionI
Signer: signer,
}

called++

return cosmos.NewCosmosMessage(msg), nil
}

Expand Down

0 comments on commit 23f7ef4

Please sign in to comment.