Browse Source

feat: add cross task

Wren 1 year ago
parent
commit
5f076dcf57
1 changed files with 1 additions and 1 deletions
  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);