Browse Source

钱包工具类

master
vee 4 years ago
parent
commit
10d76c273b
  1. 3
      utils/WalletUtil.js

3
utils/WalletUtil.js

@ -78,6 +78,7 @@ let WalletUtil = {
let wallet = walletInfo.BTC[0];
uni.setStorageSync('walletInfo', walletInfo);
uni.setStorageSync('wallet', wallet);
this.updateBalance();
},
//修改钱包名称
updateWalletName: function(type, address, name) {
@ -129,6 +130,7 @@ let WalletUtil = {
console.log(walletInfo, 1111111)
uni.setStorageSync('walletInfo', walletInfo);
uni.setStorageSync('wallet', wallet);
this.updateBalance();
},
//私钥新建
privateKeyEstablishWallet: function(type, privateKey, password) {
@ -154,6 +156,7 @@ let WalletUtil = {
walletInfo.push(wallet);
uni.setStorageSync('walletInfo', walletInfo);
uni.setStorageSync('wallet', wallet);
this.updateBalance();
},
//获取钱包列表
getWalletList: function(type) {

Loading…
Cancel
Save