Fix TxIn parsing

This commit is contained in:
Rene Vergara 2024-04-05 12:47:17 -05:00
parent f375467fee
commit 3c2e8fc994
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.5.3.0]
### Fixed
- Parsing of `TxIn` for FFI
## [0.5.2.0]
### Added

View file

@ -160,7 +160,7 @@ fromRawTxIn t = H.TxIn op (rti_script t) (rti_seq t)
then H.nullOutPoint
else H.OutPoint
((fromJust .
H.hexToTxHash . E.decodeUtf8Lenient . rop_hash . rti_outpoint)
H.hexToTxHash . toText . hexString . rop_hash . rti_outpoint)
t)
(rop_n $ rti_outpoint t)