Skip to content

Commit

Permalink
use pending nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklista committed Mar 19, 2024
1 parent 1aea400 commit 3200b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type wallet struct {

func (w wallet) Opts(ctx context.Context) (*bind.TransactOpts, error) {
auth := *w.auth
nonce, err := w.ethCli.NonceAt(ctx, w.address, nil)
nonce, err := w.ethCli.PendingNonceAt(ctx, w.address)
if err != nil {
return nil, errors.Wrap(err, "failed to get nonce")
}
Expand Down

0 comments on commit 3200b36

Please sign in to comment.