ExUnitPrices.deserialize constructor

ExUnitPrices.deserialize(
  1. CborListValue cbor
)

Implementation

factory ExUnitPrices.deserialize(CborListValue cbor) {
  return ExUnitPrices(
      memPrice: UnitInterval.deserialize(cbor.getIndex(0)),
      stepPrice: UnitInterval.deserialize(cbor.getIndex(1)));
}