Add BLS precompiles to warm list (#7100)

Add the BLS precompiles to the warm account list for EIP-2929 gas costs.

Signed-off-by: Danno Ferrin <danno@numisight.com>
pull/7104/head
Danno Ferrin 7 months ago committed by GitHub
parent 02a991f620
commit 27e5a649d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      evm/src/main/java/org/hyperledger/besu/evm/gascalculator/PragueGasCalculator.java

@ -14,7 +14,7 @@
*/ */
package org.hyperledger.besu.evm.gascalculator; package org.hyperledger.besu.evm.gascalculator;
import static org.hyperledger.besu.datatypes.Address.KZG_POINT_EVAL; import static org.hyperledger.besu.datatypes.Address.BLS12_MAP_FP2_TO_G2;
import org.hyperledger.besu.datatypes.Address; import org.hyperledger.besu.datatypes.Address;
import org.hyperledger.besu.datatypes.Wei; import org.hyperledger.besu.datatypes.Wei;
@ -37,7 +37,7 @@ public class PragueGasCalculator extends CancunGasCalculator {
/** Instantiates a new Prague Gas Calculator. */ /** Instantiates a new Prague Gas Calculator. */
public PragueGasCalculator() { public PragueGasCalculator() {
this(KZG_POINT_EVAL.toArrayUnsafe()[19]); this(BLS12_MAP_FP2_TO_G2.toArrayUnsafe()[19]);
} }
/** /**

Loading…
Cancel
Save