Hash password

This commit is contained in:
saplf
2019-10-02 17:09:40 +08:00
parent b5360b65d8
commit cf62aa1aa8

View File

@@ -2,6 +2,7 @@ import http from '@/utils/http';
import _ from 'lodash';
import BigNumber from 'bignumber.js';
import { CoinDrawn, FundBasic } from '@/types/common';
import { encryptPwd } from '@/utils/transform';
export async function getCoins(): Promise<CoinDrawn[]> {
const { ok, msg, data } = await http.get<CoinDrawn[]>('/fund/withdrawCoins');
@@ -23,7 +24,7 @@ export async function withdraw(
coinId: coin.id,
targetAddress,
amount,
password,
password: encryptPwd(password),
});
if (ok) return
throw Error(msg);