Browse Source

Merge branch 'dev' of http://120.92.132.192:23541/web/mymymoba_vue into dev

panmeiyu 3 years ago
parent
commit
c077f55ace
1 changed files with 1 additions and 1 deletions
  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];