Fix crash when attempting to send amounts > max supply
This commit is contained in:
@@ -10,7 +10,6 @@ package cash.z.ecc.android.sdk.model
|
||||
data class Zatoshi(val value: Long) : Comparable<Zatoshi> {
|
||||
init {
|
||||
require(value >= MIN_INCLUSIVE) { "Zatoshi must be in the range [$MIN_INCLUSIVE, $MAX_INCLUSIVE]" }
|
||||
require(value <= MAX_INCLUSIVE) { "Zatoshi must be in the range [$MIN_INCLUSIVE, $MAX_INCLUSIVE]" }
|
||||
}
|
||||
|
||||
operator fun plus(other: Zatoshi) = Zatoshi(value + other.value)
|
||||
|
||||
Reference in New Issue
Block a user