Skip to content

Commit

Permalink
Return null when RSKIP453 is active
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Nov 26, 2024
1 parent 4773a39 commit 5458b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rskj-core/src/main/java/org/ethereum/vm/program/Program.java
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ private ProgramResult getProgramResult(RskAddress senderAddress, byte[] nonce, D
if (activations.isActive(ConsensusRule.RSKIP453)) {
track.rollback();
stackPushZero();
return programResult;
return null;
}
} else if (codeLength > Constants.getMaxContractSize()) {
programResult.setException(
Expand All @@ -700,7 +700,7 @@ private ProgramResult getProgramResult(RskAddress senderAddress, byte[] nonce, D
if (activations.isActive(ConsensusRule.RSKIP453)) {
track.rollback();
stackPushZero();
return programResult;
return null;
}
} else {
programResult.spendGas(storageCost);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class ActivationConfigTest {
" rskip428: lovell700",
" rskip434: arrowhead631",
" rskip438: lovell700",
" rskip453: lovell700",
"}"
));

Expand Down

0 comments on commit 5458b42

Please sign in to comment.