Skip to content

Commit

Permalink
update initia.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JSHan94 committed Dec 4, 2023
1 parent 51083bf commit 40e1032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion bots/src/worker/outputSubmitter/outputSubmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 40e1032

Please sign in to comment.