Skip to content

Commit

Permalink
fix(romLex): wrong stack arg for extcodecopy address (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
letypequividelespoubelles authored and powerslider committed Dec 21, 2023
1 parent 43b5deb commit 396a3a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ public void tracePreOpcode(MessageFrame frame) {
}

case EXTCODECOPY -> {
final Address calledAddress = Words.toAddress(frame.getStackItem(1));
final long size = Words.clampedToLong(frame.getStackItem(3));
final Address calledAddress = Words.toAddress(frame.getStackItem(0));
final long length = Words.clampedToLong(frame.getStackItem(3));
final boolean isDeploying =
hub.conflation().deploymentInfo().isDeploying(frame.getContractAddress());
if (size == 0 || isDeploying) {
if (length == 0 || isDeploying) {
return;
}
final int depNumber = hub.conflation().deploymentInfo().number(frame.getContractAddress());
Expand Down

0 comments on commit 396a3a5

Please # to comment.