Skip to content

Commit

Permalink
Merge pull request #240 from 0xPolygonHermez/feature/stack-overflow
Browse files Browse the repository at this point in the history
remove duplicate stack overflow
  • Loading branch information
krlosMata authored Jan 25, 2023
2 parents a409e86 + 00d97d5 commit 6089fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/opcodes/stack-operations.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ opDUP1:
GAS - %GAS_FASTEST_STEP => GAS :JMPN(outOfGas)

$ => A :MLOAD(SP-1); [value => A]
; check stack overflow
%CALLDATA_OFFSET - SP :JMPN(stackOverflow)

; store duplicated value
A :MSTORE(SP++); [duplicated_value(A) => SP]

; check stack overflow
%CALLDATA_OFFSET - SP :JMPN(stackOverflow, readCode)

Expand Down

0 comments on commit 6089fc6

Please sign in to comment.