Hash password
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user