From 5d69646b2544f708849c7df1e08a239a527140f5 Mon Sep 17 00:00:00 2001 From: Michal Iskierko Date: Thu, 11 Jul 2024 14:36:24 +0200 Subject: [PATCH] WIP --- transactions/transactor.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/transactions/transactor.go b/transactions/transactor.go index 2efbb8dc3..ba97b111a 100644 --- a/transactions/transactor.go +++ b/transactions/transactor.go @@ -114,10 +114,13 @@ func (t *Transactor) NextNonce(rpcClient rpc.ClientInterface, chainID uint64, fr if err != nil { return 0, err } + fmt.Println("!!! Nonce: ", nonce) + fmt.Println("!!! countOfPendingTXs: ", countOfPendingTXs) return nonce + countOfPendingTXs, nil } } + fmt.Println("!!! Nonce: ", nonce) return nonce, err } @@ -487,7 +490,7 @@ func (t *Transactor) buildTransactionWithOverrides(nonce uint64, value *big.Int, } } tx = gethtypes.NewTx(txData) - t.logNewTx(args, gas, gasPrice, value) + t.logNewTx(args, gas, gasPrice, value, nonce) } else { if args.IsDynamicFeeTx() { gasTipCap := (*big.Int)(args.MaxPriorityFeePerGas) @@ -511,13 +514,14 @@ func (t *Transactor) buildTransactionWithOverrides(nonce uint64, value *big.Int, return tx } -func (t *Transactor) logNewTx(args SendTxArgs, gas uint64, gasPrice *big.Int, value *big.Int) { +func (t *Transactor) logNewTx(args SendTxArgs, gas uint64, gasPrice *big.Int, value *big.Int, nonce uint64) { t.log.Info("New transaction", "From", args.From, "To", *args.To, "Gas", gas, "GasPrice", gasPrice, "Value", value, + "Nonce", nonce, ) }