Skip to content

Commit 1ac3d98

Browse files
committed
fix methods
1 parent 4d09f11 commit 1ac3d98

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

Diff for: sdk-transaction/src/main/java/org/fisco/bcos/sdk/transaction/manager/AssembleTransactionProcessor.java

+14-6
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,19 @@ public TransactionResponse sendTransactionAndGetResponse(
282282
public TransactionResponse sendTransactionWithStringParamsAndGetResponse(
283283
String to, String abi, String functionName, List<String> params)
284284
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 {
285296
String data = abiCodec.encodeMethodFromString(abi, functionName, params);
286-
return sendTransactionAndGetResponse(to, abi, functionName, data);
297+
return sendTransactionAndGetResponse(to, abi, functionName, data, cryptoKeyPair);
287298
}
288299

289300
@Override
@@ -314,11 +325,8 @@ public TransactionResponse sendTransactionAndGetResponseByContractLoader(
314325
String functionName,
315326
List<Object> funcParams)
316327
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);
322330
}
323331

324332
public TransactionResponse sendTransactionAndGetResponseByContractLoader(

0 commit comments

Comments
 (0)