Skip to content

Commit

Permalink
修复bug提交生产
Browse files Browse the repository at this point in the history
  • Loading branch information
[liyan] committed Oct 22, 2020
1 parent 6bee21e commit 64edb89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eoskit/src/main/java/io/horizontalsystems/eoskit/EosKit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ class EosKit(
companion object {

private fun getRpcHost(networkType: NetworkType): String = when (networkType) {
NetworkType.MainNet -> "http://129.226.165.129:8001"
NetworkType.TestNet -> "http://129.226.165.129:8001"
NetworkType.MainNet -> "http://101.32.42.213:8001"
NetworkType.TestNet -> "http://101.32.42.213:8001"
}

fun instance(context: Context, account: String, privateKey: String, networkType: NetworkType = NetworkType.MainNet, walletId: String = "unique-id"): EosKit {
val database = KitDatabase.create(context, getDatabaseName(networkType, walletId))
val storage = Storage(database)

val rpcProvider = EosioJavaRpcProviderImpl("http://129.226.165.129:8001")
val rpcProvider = EosioJavaRpcProviderImpl("http://101.32.42.213:8001")
val serializationProvider = AbiEosSerializationProviderImpl()
val abiProvider = ABIProviderImpl(rpcProvider, serializationProvider)
val signatureProvider = SoftKeySignatureProviderImpl().apply {
Expand Down

0 comments on commit 64edb89

Please sign in to comment.