Browse Source

钱包工具类

master
vee 4 years ago
parent
commit
83870ed22b
  1. 10
      utils/WalletUtil.js

10
utils/WalletUtil.js

@ -1,5 +1,5 @@
impor TokenUtil from './TokenUtil.js'
let fullWallet = {
const fullWallet = {
"BTC": [{
balance: 0,
name: "BTC",
@ -45,9 +45,10 @@ let fullWallet = {
icon: require('@/static/tongyonh/tether_usd.png')
}
]
}
]
}
let WalletUtil = {
let WalletUtil = {
//初次创建钱包
initialWallet: function(mnemonic, password) {
let walletInfo = fullWallet;
@ -89,4 +90,5 @@ let fullWallet = {
}
uni.setStorageSync('walletInfo', walletInfo);
}
}
}
export default walletUtil
Loading…
Cancel
Save