Skip to content

Commit

Permalink
fix(tmp): use confirmed nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed Oct 23, 2023
1 parent f5b9b1c commit 67cf0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/bsc_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 67cf0f1

Please sign in to comment.