Skip to content

Commit

Permalink
fix: getting current nonce for a specified address
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Jan 8, 2025
1 parent 0932e28 commit 404a5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/rpc/backend/backend_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (s *BackendSuite) getUnibiBalance(address gethcommon.Address) *big.Int {

// getCurrentNonce returns the current nonce of the funded account
func (s *BackendSuite) getCurrentNonce(address gethcommon.Address) uint64 {
nonce, err := s.backend.GetTransactionCount(s.fundedAccEthAddr, rpc.EthPendingBlockNumber)
nonce, err := s.backend.GetTransactionCount(address, rpc.EthPendingBlockNumber)
s.Require().NoError(err)

return uint64(*nonce)
Expand Down

0 comments on commit 404a5da

Please sign in to comment.