Skip to content

Commit

Permalink
add comments & increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
krlosMata committed Nov 24, 2022
1 parent f687038 commit 28240c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@0xpolygonhermez/zkevm-commonjs",
"description": "Javascript library implementing common utilities for zkevm",
"version": "0.5.0.0",
"version": "0.5.0.1",
"main": "index.js",
"scripts": {
"setup": "npm i",
Expand Down
2 changes: 2 additions & 0 deletions src/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports = class Processor {
* @param {Number} timestamp - Timestamp of the batch
* @param {Number} chainID - L2 chainID
* @param {Object} vm - vm instance
* @param {Object} options - batch options
* @param {Bool} options.skipUpdateSystemStorage Skips updates on system smrt contract at the end of processable transactions
*/
constructor(
db,
Expand Down
2 changes: 2 additions & 0 deletions src/zkevm-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class ZkEVMDB {
* @param {String} sequencerAddress - ethereum address represented as hex
* @param {Array[Field]} globalExitRoot - global exit root
* @param {Scalar} maxNTx - Maximum number of transactions (optional)
* @param {Object} options - additional batch options
* @param {Bool} options.skipUpdateSystemStorage - Skips updates on system smrt contract at the end of processable transactions
*/
async buildBatch(timestamp, sequencerAddress, globalExitRoot, maxNTx = Constants.DEFAULT_MAX_TX, options = {}) {
return new Processor(
Expand Down

0 comments on commit 28240c9

Please sign in to comment.