Skip to content

Commit

Permalink
Remove unnecessary line
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Feb 13, 2024
1 parent 0014454 commit 60815d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions main/process-tx.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ callContract:

readByteCode:
$ => E :MLOAD(contractHashId) ; hash index
$ => A :MLOAD(txDestAddr)
; check next byte exist on the bytecode
$ => B :MLOAD(bytecodeLength)
B - PC - 1 :JMPN(defaultOpCode) ; no bytecode treated as 0x00
Expand All @@ -447,7 +446,6 @@ readByteCode:
PC + 1 => PC :JMP(@mapping_opcodes + RR)

readCode:
%MAX_CNT_STEPS - STEP - 500 :JMPN(outOfCountersStep)
$ => A :MLOAD(isCreateContract), JMPNZ(readDeployBytecode, readByteCode)

;; Compute and save hash bytecode and bytecode length in the state-tree
Expand Down
1 change: 0 additions & 1 deletion main/utils.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,6 @@ VAR GLOBAL tmpVarBoffsetUtil
;@out C offset%32
offsetUtil:
%MAX_CNT_STEPS - STEP - 20 :JMPN(outOfCountersStep)
%MAX_CNT_BINARY - CNT_BINARY - 1 :JMPN(outOfCountersBinary)

; E = [e7, e6, ..., e0]
; JMPN instruction assures e0 is within the range [0, 2**32 - 1]
Expand Down

0 comments on commit 60815d1

Please sign in to comment.