diff --git a/node/pkg/chain/helper/helper.go b/node/pkg/chain/helper/helper.go index 757f2bd60..a88fdbed4 100644 --- a/node/pkg/chain/helper/helper.go +++ b/node/pkg/chain/helper/helper.go @@ -156,9 +156,9 @@ func (t *ChainHelper) GetSignedFromDelegator(tx *types.Transaction) (*types.Tran func (t *ChainHelper) MakeDirectTx(ctx context.Context, contractAddressHex string, functionString string, args ...interface{}) (*types.Transaction, error) { var result *types.Transaction - nonce, err := noncemanager.GetAndIncrementNonce(t.wallet) + nonce, err := utils.GetNonceFromPk(ctx, t.wallet, t.clients[0]) if err != nil { - return result, err + return nil, err } job := func(c utils.ClientInterface) error { diff --git a/node/pkg/checker/inspect/app.go b/node/pkg/checker/inspect/app.go index 32b5cffe6..8f80eeb3d 100644 --- a/node/pkg/checker/inspect/app.go +++ b/node/pkg/checker/inspect/app.go @@ -127,6 +127,8 @@ func (i *Inspector) Inspect(ctx context.Context) (string, error) { } msg += inspectVRFResult + time.Sleep(5 * time.Second) // sleep to prevent nonce reuse read from onchain + inspectRRResult, err := i.inspectRR(ctx) if err != nil { log.Error().Err(err).Msg("Failed RR inspection")