mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Rename destinationAddress to toAddress
This commit is contained in:
@@ -37,10 +37,10 @@ class ReceiveOnchain {
|
||||
fun execute_refund(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: execute-refund
|
||||
val swapAddress = "..."
|
||||
val destinationAddress = "..."
|
||||
val toAddress = "..."
|
||||
val satPerVbyte = 1.toUInt()
|
||||
try {
|
||||
sdk.refund(RefundRequest(swapAddress, destinationAddress, satPerVbyte))
|
||||
sdk.refund(RefundRequest(swapAddress, toAddress, satPerVbyte))
|
||||
} catch (e: Exception) {
|
||||
// handle error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user