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