Browse Source

feat: add cross task

Wren 2 năm trước cách đây
mục cha
commit
5f076dcf57
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);