Skip to content

Commit

Permalink
Merge branch 'develop' into verify-single-payment-token
Browse files Browse the repository at this point in the history
  • Loading branch information
austinborn authored Sep 13, 2023
2 parents 838e072 + 8826bb9 commit ac409a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/web/evm_transfer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/pkg/errors"

commontxmgr "github.com/smartcontractkit/chainlink/v2/common/txmgr"
"github.com/smartcontractkit/chainlink/v2/core/assets"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/txmgr"
Expand Down Expand Up @@ -146,7 +147,8 @@ func FindTxAttempt(ctx context.Context, timeout time.Duration, etx txmgr.Tx, Fin
}

// exit if tx attempts are found
if len(etx.TxAttempts) > 0 {
// also validate etx.State != unstarted (ensure proper tx state for tx with attempts)
if len(etx.TxAttempts) > 0 && etx.State != commontxmgr.TxUnstarted {
break
}
tick = time.After(recheckTime)
Expand Down

0 comments on commit ac409a0

Please sign in to comment.