typo minimum (#4010)

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/4005/head
Sally MacFarlane 2 years ago committed by GitHub
parent ed37cba977
commit a0ac0ebad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      evm/src/main/java/org/hyperledger/besu/evm/operation/SStoreOperation.java
  2. 2
      evm/src/main/java/org/hyperledger/besu/evm/tracing/EstimateGasOperationTracer.java

@ -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
@ -71,9 +71,9 @@ public class SStoreOperation extends AbstractOperation {
} 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));
}

@ -31,7 +31,7 @@ public class EstimateGasOperationTracer implements OperationTracer {
} finally {
if (frame.getCurrentOperation() instanceof SStoreOperation && sStoreStipendNeeded == 0L) {
sStoreStipendNeeded =
((SStoreOperation) frame.getCurrentOperation()).getMinumumGasRemaining();
((SStoreOperation) frame.getCurrentOperation()).getMinimumGasRemaining();
}
if (maxDepth < frame.getMessageStackDepth()) {
maxDepth = frame.getMessageStackDepth();

Loading…
Cancel
Save