-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional method added to generated class #657
Conversation
Codecov Report
@@ Coverage Diff @@
## master #657 +/- ##
============================================
- Coverage 77.13% 77.08% -0.05%
- Complexity 1793 1798 +5
============================================
Files 239 239
Lines 6664 6690 +26
Branches 996 999 +3
============================================
+ Hits 5140 5157 +17
- Misses 1272 1282 +10
+ Partials 252 251 -1
Continue to review full report at Codecov.
|
@MykolaMarkov can you please show what would be the result? You can generate java wrapper for one of the example contracts in gen folder, would be easier for us to see. |
Greeter code:
|
I am not 100% convinced we need those extra methods, you can get txHash from RemoteCall< TransactionReceipt> as well, you have to overwrite transactionManager though to make it return txHash strait away and not poll for tx being mined... @conor10 I will let you decide here. In case we are keeping this change - something we definitely need to address is to make new method return RemoteCall<...>. There is a good reason why it was done that way in all other places. |
I'm not sure that it is possible to receive transactionHash from RemoteCall<...> until block be mined. |
I don't think it's appropriate to add an additional method to every single transaction method. You can obtain the transaction hash using different transaction receipt processors - see the following docs. Closing for this reason. Please reopen if you have further comments. |
I don't want to wait until block will be mined in this case I need only EthSendTransaction.getTransactionHash(). And I can receive whole transactionReceipt after it will be mined. In my application I want to send multiply transactions to block and I need to be sure that all transactions processed successfully. Transaction receipt processor can help you only in case if you are using only one JavaApp node to communicate with ETH network. In case if you send transaction from one node and want process response on any node, it doesn't help. This is my case. Anyway thanks @conor10, @yuriymyronovych for doing great job! |
@MykolaMarkov can you draw a diagram - I do not understand your use-case. |
It will be useful in case if you need only transaction hash of submitted transaction.