Skip to content

Commit 00cb66a

Browse files
authored
fix: undoDepStatusAndNumberUpdate fix (#37)
We _can't_ connect the deployment statuses, that was a mistake. E.g. consider the case where you - precompute deployment address dep_addr - perform an EXTCODEHASH or EXTCODESIZE on dep_addr - then perform the relevant CREATE to bring the dep_addr into existence - finish on a REVERT In this case the undoing deployment number is += 1 rel to the one encountered when initially tracing the EXTCODEXXX opcode. N.B. This fixes the java test "extcodexxxBeforeDuringAndAfterDeploymentDeployingEmtpyByteCode"
1 parent 58ffe1e commit 00cb66a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hub/account/specialized_constraints/deployment.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
\accUndoDeploymentStatusAndNumberUpdate {i}{\reluo}{\reldo} \iff
1919
\left\{ \begin{array}{lcl}
2020
\multicolumn{3}{l}{\accSameDeploymentNumber {i}{\reluo}} \\
21-
\accDeploymentNumber _{i + \reluo} & = & \accDeploymentNumber\new _{i + \reldo} \\
22-
\accDeploymentStatus _{i + \reluo} & = & \accDeploymentStatus\new _{i + \reldo} \\
23-
\accDeploymentStatus\new _{i + \reluo} & = & \accDeploymentStatus _{i + \reldo} \\
21+
\accDeploymentStatus _{i + \reluo} & = & \accDeploymentStatus\new _{i + \reldo} \\
22+
\accDeploymentStatus\new _{i + \reluo} & = & \accDeploymentStatus _{i + \reldo} \\
2423
\end{array} \right. } \\
2524
\end{array} \right.
2625
\]

0 commit comments

Comments
 (0)