fix scriptPubKeyHex

This commit is contained in:
sneurlax 2023-09-22 14:49:08 -05:00
parent 15417359a4
commit f2854c0bc6

View file

@ -547,7 +547,7 @@ extension FusionTransaction on Transaction {
}
final scriptPubKeyHex =
_tx["vout"]?[input.vout]?["scriptPubKey"] as String?;
_tx["vout"]?[input.vout]?["scriptPubKey"]?["hex"] as String?;
if (scriptPubKeyHex == null) {
throw Exception(
"scriptPubKey of vout index ${input.vout} in transaction is null",