Commit 84991b98 authored by Kelvin Fichter's avatar Kelvin Fichter

fix: use the same nonce for each batch submission

parent 7899adbd
......@@ -173,9 +173,11 @@ export class StateBatchSubmitter extends BatchSubmitter {
this.logger.debug('Submitting batch.', { calldata })
// Generate the transaction we will repeatedly submit
const nonce = await this.signer.getTransactionCount()
const tx = await this.chainContract.populateTransaction.appendStateBatch(
batch,
offsetStartsAtIndex
offsetStartsAtIndex,
{ nonce }
)
const submitTransaction = (): Promise<TransactionReceipt> => {
return this.transactionSubmitter.submitTransaction(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment