public static Wei fromQuantity(final Quantity quantity) {
    return Wei.wrap((Bytes) quantity);
  }
From quantity to wei.

@param quantity the quantity
@return the wei
datatypes/src/main/java/org/hyperledger/besu/datatypes/Wei.java