Skip to content

Commit

Permalink
adds comments to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jan 11, 2021
1 parent 57e9ac2 commit 34c0112
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/project/EmptyJava.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package <package_name>;

/**
* <p>This is the generated class for <code>web3j import</code></p>
* <p>For more information on how to run this project, please refer to our <a href="https://docs.web3j.io/quickstart/#deployment">documentation</a></p>
*/
public class <project_name> {

public static void main(String[]args) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/project/EmptyKotlin.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package <package_name>;

/**
* <p>This is the generated class for <code>web3j import</code></p>
* <p>For more information on how to run this project, please refer to our <a href="https://docs.web3j.io/quickstart/#deployment">documentation</a></p>
*/
class <project_name> {

companion object {
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/project/Java.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;
import org.web3j.tx.gas.DefaultGasProvider;

/**
* <p>This is the generated class for <code>web3j new helloworld</code></p>
* <p>It deploys the Hello World contract in src/main/solidity/ and prints its address</p>
* <p>For more information on how to run this project, please refer to our <a href="https://docs.web3j.io/quickstart/#deployment">documentation</a></p>
*/
public class <project_name> {

private static final String nodeUrl = System.getenv().getOrDefault("WEB3J_NODE_URL", "<node_url>");
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/project/Kotlin.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import org.web3j.crypto.WalletUtils
import org.web3j.protocol.Web3j
import org.web3j.tx.gas.DefaultGasProvider

/**
* <p>This is the generated class for <code>web3j new helloworld --kotlin</code></p>
* <p>It deploys the Hello World contract in src/main/solidity/ and prints its address</p>
* <p>For more information on how to run this project, please refer to our <a href="https://docs.web3j.io/quickstart/#deployment">documentation</a></p>
*/
class <project_name> {

private val nodeUrl = System.getenv().getOrDefault("WEB3J_NODE_URL", "<node_url>")
Expand Down

0 comments on commit 34c0112

Please sign in to comment.