File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
library/src/main/kotlin/one/mixin/bot
samples/src/main/java/jvmMain/java Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import com.google.gson.JsonObject
44import retrofit2.Call
55
66interface 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}
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments