-
-
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
Fix smart contract code generators using #671
Comments
Thanks! There were some details I realised I should have included: The This has made me think that it's probably better to remove the deprecated constructors for generated contracts, and just use the defaultGasProvider everywhere. |
@conor10 Thanks for the feedback. Can you expound on your comments? Comment (a.)
Comment (b.)
. Comment (a.) - The deploy<contractName> and load<contractName> methods should also be updated to use the defaultGasProvider.I dont see any deploy and load methods, but I do see the following: (example, from
Do you mean deprecate those methods above and add methods that use Something like...
(Also, Im guessing by . Comment (b.) - This has made me think that it's probably better to remove the deprecated constructors for generated contracts, and just use the defaultGasProvider everywhere.There are only 2 constructors on the generated classes
There are no deprecated constructors in the generated contracts. Or do you mean to deprecate the constructors that use Something like ...
Thanks! |
Sorry guys, saw this issue only now, @franz-see let me know if you will need any help with that fix(I will check PR now). I feel responsible for that feature :) |
@yuriymyronovych The pull request for this is still valid (no conflicts). But @conor10 did have an additional comment that I needed verification on. Kindly see #671 (comment) for the clarifications that I need :) |
@franz-see I believe @conor10 meant to simply remove gas limit/gas price from everywhere(constructors & deploy/load) and just use GasPriceProvider, it would totally make sense to me, there will be 4.0 anyway with quite a few of new api changes. It seems they are a bit overwhelmed right now, lets give them time to come back on this one. |
With the gas provider changes made to web3j, there are issues with smart contract wrappers missing additional constructors.
Currently smart contract wrappers only have two generated constructors (example taken from HumanStandardToken:
You need to update the SolidityFunctionWrapper to generate the following methods in addition to the above (example using HumanStandardToken generated code - see build.sh):
The following constructor should also be added to the Contract class:
The text was updated successfully, but these errors were encountered: