@@ -645,7 +645,7 @@ public class HumanObjectPeerTestInstance {
645645 do {
646646 // create invoice for 10k satoshis to pay to peer2
647647
648- let invoiceResult = Bindings . swiftCreateInvoiceFromChannelmanager ( channelmanager: peer2. channelManager, nodeSigner: peer2. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: SEND_MSAT_AMOUNT_A_TO_B, description: " Invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
648+ let invoiceResult = Bindings . createInvoiceFromChannelmanager ( channelmanager: peer2. channelManager, nodeSigner: peer2. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: SEND_MSAT_AMOUNT_A_TO_B, description: " Invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
649649 if let invoiceError = invoiceResult. getError ( ) {
650650 let creationError = invoiceError. getValueAsCreationError ( )
651651 print ( " creation error: \( creationError) " )
@@ -657,7 +657,7 @@ public class HumanObjectPeerTestInstance {
657657 XCTAssertTrue ( recreatedInvoice. isOk ( ) )
658658
659659 let channelManagerConstructor = peer1. constructor!
660- let invoicePaymentResult = Bindings . swiftPayInvoice ( invoice: invoice, retryStrategy: Bindings . Retry. initWithAttempts ( a: 3 ) , channelmanager: channelManagerConstructor. channelManager)
660+ let invoicePaymentResult = Bindings . payInvoice ( invoice: invoice, retryStrategy: Bindings . Retry. initWithAttempts ( a: 3 ) , channelmanager: channelManagerConstructor. channelManager)
661661 XCTAssertTrue ( invoicePaymentResult. isOk ( ) )
662662
663663 do {
@@ -767,15 +767,15 @@ public class HumanObjectPeerTestInstance {
767767 print ( " pre-payment balance A->B mSats: \( prePaymentBalanceAToB) " )
768768 print ( " pre-payment balance B->A mSats: \( prePaymentBalanceBToA) " )
769769
770- let invoiceResult = Bindings . swiftCreateInvoiceFromChannelmanager ( channelmanager: peer1. channelManager, nodeSigner: peer1. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: nil , description: " Second invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
770+ let invoiceResult = Bindings . createInvoiceFromChannelmanager ( channelmanager: peer1. channelManager, nodeSigner: peer1. explicitKeysManager. asNodeSigner ( ) , logger: logger, network: . Bitcoin, amtMsat: nil , description: " Second invoice description " , invoiceExpiryDeltaSecs: 60 , minFinalCltvExpiryDelta: 24 )
771771 let invoice = invoiceResult. getValue ( ) !
772772 print ( " Implicit amount invoice: \( invoice. toStr ( ) ) " )
773773
774774 let invoiceString = invoice. toStr ( )
775775 let recreatedInvoice = Invoice . fromStr ( s: invoiceString)
776776 XCTAssertTrue ( recreatedInvoice. isOk ( ) )
777777
778- let invoicePaymentResult = Bindings . swiftPayZeroValueInvoice ( invoice: invoice, amountMsats: SEND_MSAT_AMOUNT_B_TO_A, retryStrategy: Retry . initWithAttempts ( a: 3 ) , channelmanager: peer2. channelManager)
778+ let invoicePaymentResult = Bindings . payZeroValueInvoice ( invoice: invoice, amountMsats: SEND_MSAT_AMOUNT_B_TO_A, retryStrategy: Retry . initWithAttempts ( a: 3 ) , channelmanager: peer2. channelManager)
779779 if let error = invoicePaymentResult. getError ( ) {
780780 print ( " value type: \( error. getValueType ( ) ) " )
781781 if let routingError = error. getValueAsSending ( ) {
0 commit comments