Skip to content

Commit 1dba5c9

Browse files
committed
chore(flipcash): switch to base64 encoding for account key display
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 6193a74 commit 1dba5c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/flipcash/features/myaccount/src/main/kotlin/com/flipcash/app/myaccount/internal/MyAccountScreenViewModel.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import com.flipcash.services.user.UserManager
1111
import com.getcode.manager.BottomBarAction
1212
import com.getcode.manager.BottomBarManager
1313
import com.getcode.solana.keys.base58
14+
import com.getcode.solana.keys.base64
1415
import com.getcode.util.resources.ResourceHelper
1516
import com.getcode.utils.base58
17+
import com.getcode.utils.base64
1618
import com.getcode.view.BaseViewModel2
1719
import dagger.hilt.android.lifecycle.HiltViewModel
1820
import kotlinx.coroutines.delay
@@ -73,8 +75,8 @@ internal class MyAccountScreenViewModel @Inject constructor(
7375
init {
7476
userManager.state
7577
.onEach {
76-
val userId = it.accountId?.base58
77-
val publicKey = it.cluster?.authorityPublicKey?.base58()
78+
val userId = it.accountId?.base64
79+
val publicKey = it.cluster?.authorityPublicKey?.base64()
7880

7981
dispatchEvent(
8082
Event.OnUserAssociated(

0 commit comments

Comments
 (0)