Skip to content

Commit

Permalink
Merge pull request #264 from 0xPolygonHermez/feature/forkid-2
Browse files Browse the repository at this point in the history
update to forkid 2 & fix comments
  • Loading branch information
krlosMata authored Mar 2, 2023
2 parents 37bfbd2 + af734fc commit 6adc152
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main/constants.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CONST %LOCAL_EXIT_ROOT_STORAGE_POS = 1
CONST %LAST_TX_STORAGE_POS = 0
CONST %STATE_ROOT_STORAGE_POS = 1
CONST %MAX_MEM_EXPANSION_BYTES = 0x3fffe0
CONST %FORK_ID = 1
CONST %FORK_ID = 2

; RLP
CONST %MIN_VALUE_SHORT = 128
Expand Down
4 changes: 2 additions & 2 deletions main/load-tx-rlp.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ loadTx_rlp:
:CALL(addBatchHashData)
A - 0xc0 :JMPN(invalidTxRLP)
A - 0xf8 :JMPN(shortList)
; do not allow lists over 2**24 bytes
; do not allow lists over 2**24 bits
; Transaction could not have more than 300.000 due to smart contract limitation (keccaks counters)
; meaning that the RLP encoding is wrong
A - 0xfb :JMPN(longList, invalidTxRLP)
Expand Down Expand Up @@ -171,7 +171,7 @@ dataREAD:
A - 0x80 :JMPN(veryShortData)
A - 0x81 :JMPN(endData)
A - 0xb8 :JMPN(shortData)
; do not allow string over 2**24 bytes
; do not allow string over 2**24 bits
; Transaction could not have more than 300.000 due to smart contract limitation (keccaks counters)
; meaning that the RLP encoding is wrong
A - 0xbb :JMPN(longData, invalidTxRLP)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"devDependencies": {
"@0xpolygonhermez/zkevm-proverjs": "github:0xPolygonHermez/zkevm-proverjs#864399e9e78ac6a24601c0e620909e1be02110aa",
"@0xpolygonhermez/zkevm-testvectors": "github:0xPolygonHermez/zkevm-testvectors#feature/add-test-mstorex",
"@0xpolygonhermez/zkevm-testvectors": "github:0xPolygonHermez/zkevm-testvectors#feature/update-forkid-2",
"chai": "^4.3.6",
"chalk": "^3.0.0",
"eslint": "^8.25.0",
Expand Down

0 comments on commit 6adc152

Please sign in to comment.