@@ -564,23 +564,23 @@ protected String asyncExecuteTransaction(Function function, TransactionCallback
564564 }
565565
566566 protected String asyncExecuteTransaction (
567- ContractWrapper contractWrapper , TransactionCallback callback ) {
567+ FunctionWrapper functionWrapper , TransactionCallback callback ) {
568568 try {
569569 TransactionManager txManager = this .transactionManager ;
570570 if (txManager == null ) {
571571 txManager = new DefaultTransactionManager (client );
572572 }
573573 AbiEncodedRequest abiEncodedRequest =
574574 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 ())
578578 .setValue (
579- contractWrapper .getValue () != null
580- ? contractWrapper .getValue ().toBigIntegerExact ()
579+ functionWrapper .getValue () != null
580+ ? functionWrapper .getValue ().toBigIntegerExact ()
581581 : null )
582582 .buildAbiEncodedRequest (
583- this .functionEncoder .encode (contractWrapper .getFunction ()));
583+ this .functionEncoder .encode (functionWrapper .getFunction ()));
584584 return txManager .asyncSendTransaction (abiEncodedRequest , callback );
585585 } catch (JniException | ContractException e ) {
586586 logger .error ("sendTransaction failed, error info: {}" , e .getMessage (), e );
@@ -614,7 +614,7 @@ protected TransactionReceipt executeTransaction(Function function) {
614614 txAttribute );
615615 }
616616
617- protected TransactionReceipt executeTransaction (ContractWrapper contractWrapper ) {
617+ protected TransactionReceipt executeTransaction (FunctionWrapper functionWrapper ) {
618618 TransactionManager txManager = this .transactionManager ;
619619 if (txManager == null ) {
620620 txManager = new DefaultTransactionManager (client );
@@ -623,15 +623,15 @@ protected TransactionReceipt executeTransaction(ContractWrapper contractWrapper)
623623 try {
624624 AbiEncodedRequest abiEncodedRequest =
625625 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 ())
629629 .setValue (
630- contractWrapper .getValue () != null
631- ? contractWrapper .getValue ().toBigIntegerExact ()
630+ functionWrapper .getValue () != null
631+ ? functionWrapper .getValue ().toBigIntegerExact ()
632632 : null )
633633 .buildAbiEncodedRequest (
634- this .functionEncoder .encode (contractWrapper .getFunction ()));
634+ this .functionEncoder .encode (functionWrapper .getFunction ()));
635635 transactionReceipt = txManager .sendTransaction (abiEncodedRequest );
636636 } catch (JniException | ContractException e ) {
637637 logger .error ("sendTransaction failed, error info: {}" , e .getMessage (), e );
0 commit comments