@@ -564,23 +564,23 @@ protected String asyncExecuteTransaction(Function function, TransactionCallback
564
564
}
565
565
566
566
protected String asyncExecuteTransaction (
567
- ContractWrapper contractWrapper , TransactionCallback callback ) {
567
+ FunctionWrapper functionWrapper , TransactionCallback callback ) {
568
568
try {
569
569
TransactionManager txManager = this .transactionManager ;
570
570
if (txManager == null ) {
571
571
txManager = new DefaultTransactionManager (client );
572
572
}
573
573
AbiEncodedRequest abiEncodedRequest =
574
574
new TransactionRequestBuilder ()
575
- .setNonce (contractWrapper .getNonce ())
576
- .setBlockLimit (contractWrapper .getBlockLimit ())
577
- .setExtension (contractWrapper .getExtension ())
575
+ .setNonce (functionWrapper .getNonce ())
576
+ .setBlockLimit (functionWrapper .getBlockLimit ())
577
+ .setExtension (functionWrapper .getExtension ())
578
578
.setValue (
579
- contractWrapper .getValue () != null
580
- ? contractWrapper .getValue ().toBigIntegerExact ()
579
+ functionWrapper .getValue () != null
580
+ ? functionWrapper .getValue ().toBigIntegerExact ()
581
581
: null )
582
582
.buildAbiEncodedRequest (
583
- this .functionEncoder .encode (contractWrapper .getFunction ()));
583
+ this .functionEncoder .encode (functionWrapper .getFunction ()));
584
584
return txManager .asyncSendTransaction (abiEncodedRequest , callback );
585
585
} catch (JniException | ContractException e ) {
586
586
logger .error ("sendTransaction failed, error info: {}" , e .getMessage (), e );
@@ -614,7 +614,7 @@ protected TransactionReceipt executeTransaction(Function function) {
614
614
txAttribute );
615
615
}
616
616
617
- protected TransactionReceipt executeTransaction (ContractWrapper contractWrapper ) {
617
+ protected TransactionReceipt executeTransaction (FunctionWrapper functionWrapper ) {
618
618
TransactionManager txManager = this .transactionManager ;
619
619
if (txManager == null ) {
620
620
txManager = new DefaultTransactionManager (client );
@@ -623,15 +623,15 @@ protected TransactionReceipt executeTransaction(ContractWrapper contractWrapper)
623
623
try {
624
624
AbiEncodedRequest abiEncodedRequest =
625
625
new TransactionRequestBuilder ()
626
- .setNonce (contractWrapper .getNonce ())
627
- .setBlockLimit (contractWrapper .getBlockLimit ())
628
- .setExtension (contractWrapper .getExtension ())
626
+ .setNonce (functionWrapper .getNonce ())
627
+ .setBlockLimit (functionWrapper .getBlockLimit ())
628
+ .setExtension (functionWrapper .getExtension ())
629
629
.setValue (
630
- contractWrapper .getValue () != null
631
- ? contractWrapper .getValue ().toBigIntegerExact ()
630
+ functionWrapper .getValue () != null
631
+ ? functionWrapper .getValue ().toBigIntegerExact ()
632
632
: null )
633
633
.buildAbiEncodedRequest (
634
- this .functionEncoder .encode (contractWrapper .getFunction ()));
634
+ this .functionEncoder .encode (functionWrapper .getFunction ()));
635
635
transactionReceipt = txManager .sendTransaction (abiEncodedRequest );
636
636
} catch (JniException | ContractException e ) {
637
637
logger .error ("sendTransaction failed, error info: {}" , e .getMessage (), e );
0 commit comments