Skip to content

Commit 4971754

Browse files
yanghang8612claude
andcommitted
fix(test): correct comment in testZeroLengthOneArray
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ae18d83 commit 4971754

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework/src/test/java/org/tron/common/runtime/vm/VoteWitnessCost3Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public void testZeroLengthOneArray() {
124124
// witness array zero, amount array non-zero
125125
Program program = mockProgram(0, 0, 64, 1, 0);
126126
long cost = EnergyCost.getVoteWitnessCost3(program);
127-
// witnessMemNeeded = 0 (size is zero)
128-
// amountArraySize = 1 * 32 + 32 = 64, memNeeded = 64 + 64 = 128
127+
// witnessArraySize = 0 * 32 + 32 = 32, witnessMemNeeded = 0 + 32 = 32
128+
// amountArraySize = 1 * 32 + 32 = 64, amountMemNeeded = 64 + 64 = 128
129129
// memWords = 128 / 32 = 4
130130
// memEnergy = 3 * 4 + 4 * 4 / 512 = 12
131131
assertEquals(30012, cost);

0 commit comments

Comments
 (0)