@@ -101,7 +101,7 @@ func (s *ConstructionAPIService) estimateSize(operations []*types.Operation) flo
101
101
continue
102
102
}
103
103
hashReplay , _ := hex .DecodeString ("0000000000000000000000000000000000000000000000000000000000000000" )
104
- script , err := txscript .PayToAddrReplayOutScript (addr , hashReplay ,100 )
104
+ script , err := txscript .PayToAddrReplayOutScript (addr , hashReplay , 100 )
105
105
if err != nil {
106
106
size += zen .P2PKHReplayScriptPubkeySize
107
107
continue
@@ -342,7 +342,7 @@ func (s *ConstructionAPIService) ConstructionPayloads(
342
342
inputAddresses [i ] = address
343
343
inputAmounts [i ] = matches [0 ].Amounts [i ].String ()
344
344
345
- if class != txscript .PubKeyHashReplayOutTy {
345
+ if class != txscript .PubKeyHashReplayOutTy && class != txscript . PubKeyHashTy {
346
346
return nil , wrapErr (
347
347
ErrUnsupportedScriptType ,
348
348
fmt .Errorf ("unupported script type: %s" , class ),
@@ -452,7 +452,7 @@ func (s *ConstructionAPIService) ConstructionCombine(
452
452
fullsig := normalizeSignature (request .Signatures [i ].Bytes )
453
453
pkData := request .Signatures [i ].PublicKey .Bytes
454
454
455
- if class != txscript .PubKeyHashReplayOutTy {
455
+ if class != txscript .PubKeyHashReplayOutTy && class != txscript . PubKeyHashTy {
456
456
return nil , wrapErr (
457
457
ErrUnsupportedScriptType ,
458
458
fmt .Errorf ("unupported script type: %s" , class ),
0 commit comments