Skip to content

Commit cfb068a

Browse files
committed
Fix func name
1 parent ddf885c commit cfb068a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library/src/main/kotlin/one/mixin/bot/HttpClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ class HttpClient private constructor(
140140

141141
val externalService: ExternalService by lazy {
142142
object : ExternalService {
143-
override fun getutxoCall(hash: String, index: Int): Call<JsonObject> {
143+
override fun getUtxoCall(hash: String, index: Int): Call<JsonObject> {
144144
val list = mutableListOf<Any>()
145145
list.add(hash)
146146
list.add(index)
147147
return userService.mixinMainnetRPCCall(RpcRequest("getutxo", list))
148148
}
149149

150-
override suspend fun getutxo(hash: String, index: Int): JsonObject {
150+
override suspend fun getUtxo(hash: String, index: Int): JsonObject {
151151
val list = mutableListOf<Any>()
152152
list.add(hash)
153153
list.add(index)

library/src/main/kotlin/one/mixin/bot/api/ExternalService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import com.google.gson.JsonObject
44
import retrofit2.Call
55

66
interface ExternalService {
7-
fun getutxoCall(hash: String, index: Int): Call<JsonObject>
8-
suspend fun getutxo(hash: String, index: Int): JsonObject
7+
fun getUtxoCall(hash: String, index: Int): Call<JsonObject>
8+
suspend fun getUtxo(hash: String, index: Int): JsonObject
99
}

samples/src/main/java/jvmMain/java/Sample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static void main(String[] args) {
9999
}
100100

101101
private static void utxo(HttpClient client) throws IOException {
102-
JsonObject response = client.getExternalService().getutxoCall("b6afed179a8192513990e29953e3a6875eab53050b1e174d5c83ab76bbbd4b29",0).execute().body();
102+
JsonObject response = client.getExternalService().getUtxoCall("b6afed179a8192513990e29953e3a6875eab53050b1e174d5c83ab76bbbd4b29",0).execute().body();
103103
assert response != null;
104104
System.out.printf("%s%n", Utxo.Companion.fromJson(response.getAsJsonObject("data")).getHash());
105105
}

0 commit comments

Comments
 (0)