Last active
December 24, 2022 20:37
-
-
Save 90K2/60ff48e249a8da1b344078bfc90a8d37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun `get account info raw`() { | |
val liteClient = LiteClient( | |
liteClientConfigGlobal = LiteClientConfigGlobal( | |
liteServers = listOf( | |
LiteServerDesc(id = PublicKeyEd25519(base64("n4VDnSCUuSpjnCyUk9e3QOOd6o0ItSWYbTnW3Wnn8wk=")), ip = 84478511, port = 19949) | |
) | |
), | |
coroutineContext = Dispatchers.Default | |
) | |
runBlocking { | |
val data = liteClient.getAccount("UQDTwjlbMcG4gLgw_fmf-swoLmvaGuppGbn--6HWTUCAunDd") //as AccountInfo | |
// assertNotNull(data?.storage?.state) | |
// assertTrue(data?.storage?.state is AccountActive) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment