From d5785ab48588d3668c13f5725764f425d327c580 Mon Sep 17 00:00:00 2001 From: clakchenc <651044554@qq.com> Date: Thu, 11 Aug 2022 14:12:24 +0800 Subject: [PATCH] chg: modify tx nonce --- helper/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/tx.go b/helper/tx.go index 87bbc11b..e1c8ed3c 100644 --- a/helper/tx.go +++ b/helper/tx.go @@ -58,7 +58,7 @@ func GenerateAuthObj(client *ethclient.Client, address common.Address, data []by } // fetch nonce - nonce, err := client.PendingNonceAt(context.Background(), fromAddress) + nonce, err := client.NonceAt(context.Background(), fromAddress, nil) if err != nil { return }