diff --git a/src/main/java/org/web3j/console/project/AbstractProject.java b/src/main/java/org/web3j/console/project/AbstractProject.java index 69fa1ae..cfc22b4 100644 --- a/src/main/java/org/web3j/console/project/AbstractProject.java +++ b/src/main/java/org/web3j/console/project/AbstractProject.java @@ -126,6 +126,12 @@ protected void generateWallet() projectWallet = new ProjectWallet( ProjectUtils.generateWalletPassword(), projectStructure.getWalletPath()); + + ProjectWriter.writeResourceFile( + projectWallet.getPasswordFileName(), + ".gitignore", + projectStructure.getWalletPath()); + ProjectWriter.writeResourceFile( projectWallet.getWalletPassword(), projectWallet.getPasswordFileName(), diff --git a/src/main/java/org/web3j/console/project/kotlin/KotlinProject.java b/src/main/java/org/web3j/console/project/kotlin/KotlinProject.java index 27a6102..529dda0 100644 --- a/src/main/java/org/web3j/console/project/kotlin/KotlinProject.java +++ b/src/main/java/org/web3j/console/project/kotlin/KotlinProject.java @@ -69,6 +69,12 @@ protected void generateWallet() projectWallet = new ProjectWallet( ProjectUtils.generateWalletPassword(), projectStructure.getWalletPath()); + + ProjectWriter.writeResourceFile( + projectWallet.getPasswordFileName(), + ".gitignore", + projectStructure.getWalletPath()); + ProjectWriter.writeResourceFile( projectWallet.getWalletPassword(), projectWallet.getPasswordFileName(),