@@ -90,7 +90,7 @@ func create(_ *http.Request, args *commentapi.CreateArgs, reply *commentapi.Crea
90
90
frequencyCheck = ignoreFrequency
91
91
}
92
92
93
- if args .SupportTxID != nil || args .PaymentIntentID != nil || args .PaymentTxId != nil {
93
+ if args .SupportTxID != nil || args .PaymentIntentID != nil || args .PaymentTxID != nil {
94
94
if args .DryRun {
95
95
if args .Amount != nil {
96
96
if args .PaymentIntentID != nil {
@@ -102,7 +102,7 @@ func create(_ *http.Request, args *commentapi.CreateArgs, reply *commentapi.Crea
102
102
return errors .Err (err )
103
103
}
104
104
request .comment .Amount .SetValid (uint64 (lbc .ToUnit (btcutil .AmountSatoshi )))
105
- } else if args .PaymentTxId != nil {
105
+ } else if args .PaymentTxID != nil {
106
106
//assume cents
107
107
request .comment .Amount .SetValid (uint64 (* args .Amount ))
108
108
}
@@ -792,9 +792,9 @@ func updateSupportInfoAttempt(request *createRequest, retry bool) error {
792
792
}
793
793
request .comment .Amount .SetValid (amount )
794
794
return nil
795
- } else if request .args .PaymentTxId != nil {
795
+ } else if request .args .PaymentTxID != nil {
796
796
//check for replays
797
- existingComment , err := m .Comments (m .CommentWhere .TXID .EQ (null .StringFromPtr (request .args .PaymentTxId ))).One (db .RO )
797
+ existingComment , err := m .Comments (m .CommentWhere .TXID .EQ (null .StringFromPtr (request .args .PaymentTxID ))).One (db .RO )
798
798
if err != nil && ! errors .Is (err , sql .ErrNoRows ) {
799
799
if ! errors .Is (err , sql .ErrNoRows ) {
800
800
return errors .Err (err )
@@ -804,14 +804,14 @@ func updateSupportInfoAttempt(request *createRequest, retry bool) error {
804
804
return errors .Err ("a comment with this transaction id already exists" )
805
805
}
806
806
//query internal apis to verify the transaction
807
- pi , err := lbry .API .GetDetailsForTransaction (* request .args .PaymentTxId )
807
+ pi , err := lbry .API .GetDetailsForTransaction (* request .args .PaymentTxID )
808
808
if err != nil {
809
809
return err
810
810
}
811
811
if pi .Status != "confirmed" {
812
812
return errors .Err ("transaction is not confirmed" )
813
813
}
814
- if pi .ChannelClaimId != request .args .ChannelID {
814
+ if pi .ChannelClaimID != request .args .ChannelID {
815
815
return errors .Err ("channel mismatch for transaction" )
816
816
}
817
817
if time .Since (pi .TippedAt ) > time .Hour {
0 commit comments