From 67cf0f19d3b2419ca87975f81bd24e5f007e14c9 Mon Sep 17 00:00:00 2001 From: yutianwu Date: Mon, 23 Oct 2023 14:30:46 +0800 Subject: [PATCH] fix(tmp): use confirmed nonce --- executor/bsc_executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/bsc_executor.go b/executor/bsc_executor.go index 22778b3..e14a07f 100644 --- a/executor/bsc_executor.go +++ b/executor/bsc_executor.go @@ -412,7 +412,7 @@ func (e *BSCExecutor) QueryLatestTendermintHeaderWithRetry() (lightBlock []byte, func (e *BSCExecutor) GetNonce() (uint64, error) { ctx, cancel := context.WithTimeout(context.Background(), RPCTimeout) defer cancel() - return e.GetEthClient().PendingNonceAt(ctx, e.txSender) + return e.GetEthClient().NonceAt(ctx, e.txSender, nil) } func (e *BSCExecutor) CallBuildInSystemContract(blsSignature []byte, validatorSet *big.Int, msgBytes []byte, nonce uint64) (common.Hash, error) {