Skip to content

Instantly share code, notes, and snippets.

@90K2
Last active December 24, 2022 20:37
Show Gist options
  • Save 90K2/60ff48e249a8da1b344078bfc90a8d37 to your computer and use it in GitHub Desktop.
Save 90K2/60ff48e249a8da1b344078bfc90a8d37 to your computer and use it in GitHub Desktop.
@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