Skip to content

Commit

Permalink
Add BLS precompiles to warm list (#7100)
Browse files Browse the repository at this point in the history
Add the BLS precompiles to the warm account list for EIP-2929 gas costs.

Signed-off-by: Danno Ferrin <danno@numisight.com>
  • Loading branch information
shemnon authored May 14, 2024
1 parent 02a991f commit 27e5a64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
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.Wei;
Expand All @@ -37,7 +37,7 @@ public class PragueGasCalculator extends CancunGasCalculator {

/** Instantiates a new Prague Gas Calculator. */
public PragueGasCalculator() {
this(KZG_POINT_EVAL.toArrayUnsafe()[19]);
this(BLS12_MAP_FP2_TO_G2.toArrayUnsafe()[19]);
}

/**
Expand Down

0 comments on commit 27e5a64

Please sign in to comment.