diff --git a/core/src/main/scala/org/bitcoins/core/number/NumberType.scala b/core/src/main/scala/org/bitcoins/core/number/NumberType.scala index cd8416afc4..5e08614afb 100644 --- a/core/src/main/scala/org/bitcoins/core/number/NumberType.scala +++ b/core/src/main/scala/org/bitcoins/core/number/NumberType.scala @@ -34,7 +34,10 @@ sealed abstract class Number[T <: Number[T]] */ def andMask: BigInt - /** Factory function to create the underlying T, for instance a UInt32 */ + /** + * Factory function to create the underlying T, for instance a UInt32. + * This method must check if the parameter is in the required range. + */ def apply: A => T override def +(num: T): T = apply(underlying + num.underlying)