From b3d691de26318b39c7e024f166eb56c26e773f9b Mon Sep 17 00:00:00 2001 From: vee <897831508@qq.com> Date: Sat, 13 Nov 2021 15:39:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E5=8C=85=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/WalletUtil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/WalletUtil.js b/utils/WalletUtil.js index c609a82..b51ebcc 100644 --- a/utils/WalletUtil.js +++ b/utils/WalletUtil.js @@ -96,7 +96,7 @@ let WalletUtil = { wallet = TokenUtil.generateEth(mnemonic); break; } - let walletInfo=walletInfo[type]; + let walletInfo=walletInfo[type][0]; walletInfo.password = password; walletInfo.privateKey = wallet.privateKey; walletInfo.mnemonic = mnemonic; @@ -119,7 +119,7 @@ let WalletUtil = { wallet = TokenUtil.importTronPrivateKey(privateKey); break; } - let walletInfo=walletInfo[type]; + let walletInfo=walletInfo[type][0]; walletInfo.password = password; walletInfo.privateKey = wallet.privateKey; walletInfo.address = wallet.address;