getType2GasPrice method

Future<EvmType2GasPrice> getType2GasPrice()

Implementation

Future<EvmType2GasPrice> getType2GasPrice() async {
  final maxFeePerGas = await getGasPriceAmount();
  final maxPriorityFeePerGas = await getPriorityFee();

  return EvmType2GasPrice(
    maxFeePerGas:
        maxFeePerGas.multiplyAndCeil(type2Multiplier) + maxPriorityFeePerGas,
    maxPriorityFeePerGas: maxPriorityFeePerGas,
  );
}