diff --git a/bots/package.json b/bots/package.json index 841d44b0..768b33bd 100644 --- a/bots/package.json +++ b/bots/package.json @@ -68,7 +68,7 @@ }, "dependencies": { "@initia/builder.js": "^0.0.9", - "@initia/initia.js": "^0.1.15", + "@initia/initia.js": "^0.1.19", "@koa/cors": "^4.0.0", "@sentry/node": "^7.60.0", "@types/bluebird": "^3.5.38", diff --git a/bots/src/worker/outputSubmitter/outputSubmitter.ts b/bots/src/worker/outputSubmitter/outputSubmitter.ts index e0cdcb11..b6217bbe 100644 --- a/bots/src/worker/outputSubmitter/outputSubmitter.ts +++ b/bots/src/worker/outputSubmitter/outputSubmitter.ts @@ -87,7 +87,9 @@ export class OutputSubmitter { outputEntity.outputRoot ); - await sendTx(this.submitter, [msg]); + const { account_number, sequence } = await this.submitter.accountNumberAndSequence(); + + await sendTx(this.submitter, [msg], account_number, sequence); this.processedBlockNumber = outputEntity.endBlockNumber; }