浏览代码

返回地址

zhangjianchu 3 年之前
父节点
当前提交
73d420b0ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/wallet/MetaMask.js

+ 1 - 1
src/wallet/MetaMask.js

@@ -75,7 +75,7 @@ function requestAccounts(func){
     provider.request({ method: 'eth_requestAccounts' }).then((req)=>{
         let reqInfo ={
             code : CodeEnum.SUCCESS,
-            data :req,
+            data :req[0],
         }
         console.log(req);
         walletMgr.currentAccount = req[0];