Skip to content

Commit

Permalink
typo minimum (hyperledger#4010)
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
  • Loading branch information
macfarla authored Jun 24, 2022
1 parent ed37cba commit a0ac0eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public class SStoreOperation extends AbstractOperation {
new OperationResult(
OptionalLong.of(0L), Optional.of(ExceptionalHaltReason.ILLEGAL_STATE_CHANGE));

private final long minumumGasRemaining;
private final long minimumGasRemaining;

public SStoreOperation(final GasCalculator gasCalculator, final long minumumGasRemaining) {
public SStoreOperation(final GasCalculator gasCalculator, final long minimumGasRemaining) {
super(0x55, "SSTORE", 2, 0, 1, gasCalculator);
this.minumumGasRemaining = minumumGasRemaining;
this.minimumGasRemaining = minimumGasRemaining;
}

public long getMinumumGasRemaining() {
return minumumGasRemaining;
public long getMinimumGasRemaining() {
return minimumGasRemaining;
}

@Override
Expand Down Expand Up @@ -71,9 +71,9 @@ public OperationResult execute(final MessageFrame frame, final EVM evm) {
} else if (remainingGas < cost) {
return new OperationResult(
OptionalLong.of(cost), Optional.of(ExceptionalHaltReason.INSUFFICIENT_GAS));
} else if (remainingGas <= minumumGasRemaining) {
} else if (remainingGas <= minimumGasRemaining) {
return new OperationResult(
OptionalLong.of(minumumGasRemaining),
OptionalLong.of(minimumGasRemaining),
Optional.of(ExceptionalHaltReason.INSUFFICIENT_GAS));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void traceExecution(
} finally {
if (frame.getCurrentOperation() instanceof SStoreOperation && sStoreStipendNeeded == 0L) {
sStoreStipendNeeded =
((SStoreOperation) frame.getCurrentOperation()).getMinumumGasRemaining();
((SStoreOperation) frame.getCurrentOperation()).getMinimumGasRemaining();
}
if (maxDepth < frame.getMessageStackDepth()) {
maxDepth = frame.getMessageStackDepth();
Expand Down

0 comments on commit a0ac0eb

Please sign in to comment.