Skip to content

Commit

Permalink
fix recursive send to bridge address.
Browse files Browse the repository at this point in the history
  • Loading branch information
arhamchordia committed Nov 17, 2022
1 parent fdd03f6 commit c7b5926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func collectAllWrapAndRevertTxs(clientCtx client.Context, txQueryResult *tmCoreT
for i, msg := range transaction.GetMsgs() {
switch txMsg := msg.(type) {
case *bankTypes.MsgSend:
if txMsg.ToAddress == configuration.GetAppConfig().Tendermint.GetWrapAddress() {
if txMsg.ToAddress == configuration.GetAppConfig().Tendermint.GetWrapAddress() && txMsg.ToAddress != txMsg.FromAddress {
if memo != "DO_NOT_REVERT" {
for _, coin := range txMsg.Amount {
// Do not check for TendermintTxToKafka exists.
Expand Down

0 comments on commit c7b5926

Please sign in to comment.