fix uncaught exception in ScriptNumber (#293)

This commit is contained in:
sken 2019-01-09 13:29:59 -06:00 committed by Chris Stewart
parent edcf097b2a
commit 4c7a3731f1

View file

@ -131,8 +131,7 @@ object ScriptNumber extends Factory[ScriptNumber] {
Failure(new IllegalArgumentException(
"The given hex was not the shortest encoding for the script number: " + hex))
} else {
val number = apply(hex)
Success(number)
Try(apply(hex))
}
}