Skip to content
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

Code generator correction #711

Merged
merged 1 commit into from Oct 3, 2018

Conversation

flefevre
Copy link
Contributor

What does this PR do?

  • remove deprecated constructor method in generator
  • change load method in generator

both of these changes introduce the ContractGasProvider in the generated
code

Where should the reviewer start?

  • have a look to SolidityFunctionWrapper
  • test the generated code in the linked project web3j-maven-plugin

Why is it needed?

  • the initial generated code is not compatible with FastRawTransactionManager

@snazha-blkio snazha-blkio changed the base branch from master to release/3.6 October 3, 2018 10:52
@snazha-blkio snazha-blkio merged commit ab5693e into hyperledger:release/3.6 Oct 3, 2018
Copy link
Contributor

@conor10 conor10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a concern re: the option of a Credentials class being removed.

classBuilder.addMethod(buildConstructor(TransactionManager.class,
TRANSACTION_MANAGER));
classBuilder.addFields(buildFuncNameConstants(abi));
classBuilder.addMethods(
buildFunctionDefinitions(className, classBuilder, abi));
classBuilder.addMethod(buildLoad(className, Credentials.class, CREDENTIALS));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to provide a TransactionManager or Credentials in a generated class - this looks like it removes the credentials.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me roll back this commit and get the 3.6 out, given that more work needs to be done on this.

@iikirilov
Copy link
Contributor

cherry-picked this commit and applied comment in #725

@snazha-blkio snazha-blkio added this to the 3.6 milestone Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants