Wren пре 2 година
родитељ
комит
5f076dcf57
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/java/com/ichaoj/ams/common/util/WalletUtil.java

+ 1 - 1
src/main/java/com/ichaoj/ams/common/util/WalletUtil.java

@@ -85,7 +85,7 @@ public class WalletUtil {
 
     @SneakyThrows
     public static AirdropWallet getWalletByKeystore(String keystore, String userId, String groupName, String password) {
-        Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + groupName + File.separator + keystore);
+        Credentials credentials = WalletUtils.loadCredentials(password, WALLET_FILE_PATH + userId + File.separator + getEncryptPwd(groupName) + File.separator + keystore);
         String privateKey = credentials.getEcKeyPair().getPrivateKey().toString(16);
         AirdropWallet wallet = new AirdropWallet();
         wallet.setPrivateKey(privateKey);