use of org.hyperledger.besu.evm.operation.ChainIdOperation in project besu by hyperledger.
the class MainnetEVMs method registerIstanbulOperations.
public static void registerIstanbulOperations(final OperationRegistry registry, final GasCalculator gasCalculator, final BigInteger chainId) {
registerConstantinopleOperations(registry, gasCalculator);
registry.put(new ChainIdOperation(gasCalculator, Bytes32.leftPad(Bytes.of(chainId.toByteArray()))));
registry.put(new SelfBalanceOperation(gasCalculator));
registry.put(new SStoreOperation(gasCalculator, SStoreOperation.EIP_1706_MINIMUM));
}
Aggregations