@@ -244,12 +244,7 @@ public TransactionResponse sendTransactionAndGetResponse(
244
244
public TransactionResponse sendTransactionAndGetResponse (
245
245
String to , String abi , String functionName , String data , CryptoKeyPair cryptoKeyPair )
246
246
throws TransactionBaseException , ABICodecException {
247
- String signedData ;
248
- if (cryptoKeyPair == null ) {
249
- signedData = createSignedTransaction (to , data , this .cryptoKeyPair );
250
- } else {
251
- signedData = createSignedTransaction (to , data , cryptoKeyPair );
252
- }
247
+ String signedData = createSignedTransaction (to , data , cryptoKeyPair );
253
248
TransactionReceipt receipt = this .transactionPusher .push (signedData );
254
249
try {
255
250
return transactionDecoder .decodeReceiptWithValues (abi , functionName , receipt );
@@ -468,10 +463,6 @@ public String createSignedConstructor(String abi, String bin, List<Object> param
468
463
public String createSignedConstructor (
469
464
String abi , String bin , List <Object > params , CryptoKeyPair cryptoKeyPair )
470
465
throws ABICodecException {
471
- if (cryptoKeyPair == null ) {
472
- return createSignedTransaction (
473
- null , abiCodec .encodeConstructor (abi , bin , params ), this .cryptoKeyPair );
474
- }
475
466
return createSignedTransaction (
476
467
null , abiCodec .encodeConstructor (abi , bin , params ), cryptoKeyPair );
477
468
}
0 commit comments