|
@@ -90,12 +90,6 @@ export const getWalletInfo = async () => {
|
|
|
|
|
|
return { address, privateKey }
|
|
|
};
|
|
|
-const syncWait = (callable, deplay = 1000) => new Promise((res, rej) => {
|
|
|
- typeof callable === 'function' && callable(rej);
|
|
|
- setTimeout(() => {
|
|
|
- res();
|
|
|
- }, deplay);
|
|
|
-});
|
|
|
export const cryptoEncode = (data) => {
|
|
|
const KEY = 'wkwwkwwkwwkwwkwA';
|
|
|
const key = CryptoJS.enc.Utf8.parse(KEY);
|