Skip to content

Commit

Permalink
Refactoring function
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Dec 5, 2024
1 parent 05a5db2 commit 8ec823a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rskj-core/src/main/java/org/ethereum/vm/VM.java
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ private long computeMemoryCopyGas() {
long copySize = Program.limitToMaxLong(length);
checkSizeArgument(copySize);
long newMemSize = memNeeded(offset, copySize);
return calcMemGas(oldMemSize, newMemSize, copySize) + GasCost.MEMORY;
return GasCost.add(calcMemGas(oldMemSize, newMemSize, copySize), GasCost.MEMORY);
}

protected void doCODESIZE() {
Expand Down

0 comments on commit 8ec823a

Please sign in to comment.