Rename destinationAddress to toAddress

This commit is contained in:
ok300
2023-11-17 12:36:37 +01:00
parent de4f64ffee
commit 8f55aa1035

View File

@@ -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
}