rvv040 - Fix transparent address decoding -
Function was returning the "digest" instead the "transparentReceiver"
This commit is contained in:
parent
95f20adb56
commit
15b2f98f1d
1 changed files with 4 additions and 4 deletions
|
@ -125,20 +125,20 @@ decodeTransparentAddress taddress = do
|
|||
189 ->
|
||||
Just $
|
||||
TransparentAddress MainNet $
|
||||
TransparentReceiver P2SH (fromRawBytes digest)
|
||||
TransparentReceiver P2SH (fromRawBytes transparentReceiver)
|
||||
186 ->
|
||||
Just $
|
||||
TransparentAddress TestNet $
|
||||
TransparentReceiver P2SH (fromRawBytes digest)
|
||||
TransparentReceiver P2SH (fromRawBytes transparentReceiver)
|
||||
184 ->
|
||||
Just $
|
||||
TransparentAddress MainNet $
|
||||
TransparentReceiver P2PKH (fromRawBytes digest)
|
||||
TransparentReceiver P2PKH (fromRawBytes transparentReceiver)
|
||||
_ -> Nothing
|
||||
29 ->
|
||||
if sb == 37
|
||||
then Just $
|
||||
TransparentAddress TestNet $
|
||||
TransparentReceiver P2PKH (fromRawBytes digest)
|
||||
TransparentReceiver P2PKH (fromRawBytes transparentReceiver)
|
||||
else Nothing
|
||||
_ -> Nothing
|
||||
|
|
Loading…
Reference in a new issue