Browse Source

钱包工具类

master
vee 4 years ago
parent
commit
2557650778
  1. 8
      utils/WalletUtil.js

8
utils/WalletUtil.js

@ -44,10 +44,11 @@ let fullWallet = {
contractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', contractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
icon: require('@/static/tongyonh/tether_usd.png') icon: require('@/static/tongyonh/tether_usd.png')
} }
],
] ]
} }
let WalletUtil = { let WalletUtil = {
//初次创建钱包 //初次创建钱包
initialWallet: function(mnemonic, password) { initialWallet: function(mnemonic, password) {
let walletInfo = fullWallet; let walletInfo = fullWallet;
@ -89,4 +90,5 @@ let fullWallet = {
} }
uni.setStorageSync('walletInfo', walletInfo); uni.setStorageSync('walletInfo', walletInfo);
} }
} }
export default WalletUtil

Loading…
Cancel
Save