@@ -282,8 +282,19 @@ public TransactionResponse sendTransactionAndGetResponse(
282
282
public TransactionResponse sendTransactionWithStringParamsAndGetResponse (
283
283
String to , String abi , String functionName , List <String > params )
284
284
throws ABICodecException , TransactionBaseException {
285
+ return sendTransactionWithStringParamsAndGetResponse (
286
+ to , abi , functionName , params , this .cryptoKeyPair );
287
+ }
288
+
289
+ public TransactionResponse sendTransactionWithStringParamsAndGetResponse (
290
+ String to ,
291
+ String abi ,
292
+ String functionName ,
293
+ List <String > params ,
294
+ CryptoKeyPair cryptoKeyPair )
295
+ throws ABICodecException , TransactionBaseException {
285
296
String data = abiCodec .encodeMethodFromString (abi , functionName , params );
286
- return sendTransactionAndGetResponse (to , abi , functionName , data );
297
+ return sendTransactionAndGetResponse (to , abi , functionName , data , cryptoKeyPair );
287
298
}
288
299
289
300
@ Override
@@ -314,11 +325,8 @@ public TransactionResponse sendTransactionAndGetResponseByContractLoader(
314
325
String functionName ,
315
326
List <Object > funcParams )
316
327
throws ABICodecException , TransactionBaseException {
317
- return sendTransactionAndGetResponse (
318
- contractAddress ,
319
- contractLoader .getABIByContractName (contractName ),
320
- functionName ,
321
- funcParams );
328
+ return sendTransactionAndGetResponseByContractLoader (
329
+ contractName , contractAddress , functionName , funcParams , this .cryptoKeyPair );
322
330
}
323
331
324
332
public TransactionResponse sendTransactionAndGetResponseByContractLoader (
0 commit comments