File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -501,13 +501,25 @@ DEFINE_JSON_TO_TAG(input)
501501
502502DEFINE_JSON_FROM_TAG (input)
503503{
504- value =
504+ if (instance. witness (). is_valid ())
505505 {
506- { " point" , value_from (instance.point ()) },
507- { " script" , value_from (instance.script ()) },
508- { " witness" , value_from (instance.witness ()) },
509- { " sequence" , instance.sequence () }
510- };
506+ value =
507+ {
508+ { " point" , value_from (instance.point ()) },
509+ { " script" , value_from (instance.script ()) },
510+ { " witness" , value_from (instance.witness ()) },
511+ { " sequence" , instance.sequence () }
512+ };
513+ }
514+ else
515+ {
516+ value =
517+ {
518+ { " point" , value_from (instance.point ()) },
519+ { " script" , value_from (instance.script ()) },
520+ { " sequence" , instance.sequence () }
521+ };
522+ }
511523}
512524
513525DEFINE_JSON_TO_TAG (input::cptr)
You can’t perform that action at this time.
0 commit comments