mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 14:50:42 +01:00
fix uncaught exception in ScriptNumber (#293)
This commit is contained in:
parent
edcf097b2a
commit
4c7a3731f1
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue