Exemplo n.º 1
0
 /// <summary>
 /// Initializes this GasPrice with the functional and readable gas prices using a <see cref="BigInteger"/>.
 /// </summary>
 /// <param name="functionalGasPrice"> The <see cref="BigInteger"/> functional gas price to use when sending transactions. </param>
 public GasPrice(BigInteger functionalGasPrice)
 {
     FunctionalGasPrice = new HexBigInteger(functionalGasPrice);
     ReadableGasPrice   = GasUtils.GetReadableGasPrice(functionalGasPrice);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes this GasPrice with the functional and readable prices using a <see cref="HexBigInteger"/>.
 /// </summary>
 /// <param name="functionalGasPrice"> The <see cref="HexBigInteger"/> functional gas price to use when sending transactions. </param>
 public GasPrice(HexBigInteger functionalGasPrice)
 {
     FunctionalGasPrice = functionalGasPrice;
     ReadableGasPrice   = GasUtils.GetReadableGasPrice(functionalGasPrice.Value);
 }