You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the value of configStr that I printed out has JSON and server node configuration, but initializing Tonlib will result in an error
1、Full Code
val open = assets.open("testnet-global-config.json")
val configStr = Utils.streamToString(open)
val build = Tonlib.builder().testnet(true).originalGlobalConfigStr(configStr).build()
1、I added JSON
val configStr = Utils.streamToString(openJson)
val build = Tonlib.builder().testnet(true).originalGlobalConfigStr(configStr).build()
2、error log
Error creating tonlib instance: Attempt to invoke virtual method 'org.ton.java.tonlib.types.globalconfig.LiteServers[] org.ton.java.tonlib.types.globalconfig.TonGlobalConfig.getLiteservers()' on a null object reference
The text was updated successfully, but these errors were encountered: