Skip to content

Commit

Permalink
Merge pull request #390 from 0xPolygonHermez/feature/address-collision
Browse files Browse the repository at this point in the history
Dont revert touched address on deploy collision
  • Loading branch information
laisolizq authored Jul 22, 2024
2 parents 2be6d91 + 9778f2c commit c93c1eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main/process-tx.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ deploy:
%MAX_CNT_POSEIDON_G - CNT_POSEIDON_G - %MAX_CNT_POSEIDON_SLOAD_SSTORE*3 :JMPN(outOfCountersPoseidon)
%MAX_CNT_BINARY - CNT_BINARY - 3 :JMPN(outOfCountersBinary)
:CALL(isColdAddress) ; add address to touched addresses
A => E :CALL(checkpointTouched) ; new address is ward even after error
; check if address is deployable ( nonce == bytecode == 0)
A => E

E => A
; read nonce
0 => C
%SMT_KEY_NONCE => B
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@0xpolygonhermez/zkevm-commonjs": "github:0xPolygonHermez/zkevm-commonjs#v6.0.0-fork.9",
"@0xpolygonhermez/zkevm-proverjs": "github:0xPolygonHermez/zkevm-proverjs#39508f69cb191487a065ffbf76c647cd83b59720",
"@0xpolygonhermez/zkevm-testvectors": "github:0xPolygonHermez/zkevm-testvectors#v6.0.1-fork.9",
"@0xpolygonhermez/zkevm-testvectors": "github:0xPolygonHermez/zkevm-testvectors#develop",
"chai": "^4.3.6",
"chalk": "^3.0.0",
"eslint": "^8.25.0",
Expand Down

0 comments on commit c93c1eb

Please sign in to comment.