Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import dev.bmcreations.phantom.connect.ConnectResult
import dev.bmcreations.phantom.connect.PhantomSdk
import dev.bmcreations.phantom.connect.wallet.PhantomWalletConnector
import dev.bmcreations.phantom.connect.wallet.PhantomWalletException
import kotlin.coroutines.cancellation.CancellationException
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -225,6 +226,8 @@ class PhantomWalletController @Inject constructor(
}

Result.success(transaction to swapId)
} catch (e: CancellationException) {
throw e
} catch (e: Exception) {
trace("External swap failed", type = TraceType.Error, error = e)
Result.failure(
Expand Down
Loading