-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MWA 2.0 clientlib-ktx support #576
MWA 2.0 clientlib-ktx support #576
Conversation
} | ||
|
||
suspend fun <T> transact( | ||
sender: ActivityResultSender, | ||
block: suspend AdapterOperations.() -> T, | ||
): TransactionResult<T> = coroutineScope { | ||
return@coroutineScope try { | ||
val scenario = scenarioProvider.provideAssociationScenario(timeout) | ||
val scenario = scenarioProvider.provideAssociationScenario(timeout, SessionProperties.ProtocolVersion.V1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now by default we are requesting V2 connections
@@ -94,20 +106,23 @@ class MobileWalletAdapter( | |||
val client = scenario.start().get(ASSOCIATION_CONNECT_DISCONNECT_TIMEOUT_MS, TimeUnit.MILLISECONDS) | |||
adapterOperations.client = client | |||
|
|||
val authResult = credsState.let { creds -> | |||
if (creds is CredentialState.Provided) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "credentials" (now "identity") are always going to be provided in 2.0
...id/clientlib-ktx/src/main/java/com/solana/mobilewalletadapter/clientlib/AdapterOperations.kt
Outdated
Show resolved
Hide resolved
...ientlib-ktx/src/main/java/com/solana/mobilewalletadapter/clientlib/LocalAdapterOperations.kt
Show resolved
Hide resolved
...id/clientlib-ktx/src/main/java/com/solana/mobilewalletadapter/clientlib/TransactionParams.kt
Show resolved
Hide resolved
...tlib-ktx-app/app/src/main/java/com/solanamobile/ktxclientsample/viewmodel/SampleViewModel.kt
Outdated
Show resolved
Hide resolved
...id/clientlib-ktx/src/main/java/com/solana/mobilewalletadapter/clientlib/TransactionParams.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
No description provided.