mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-27 07:45:54 +00:00
comment-out deploy_at
This commit is contained in:
parent
6568d7600d
commit
a58eecfebe
@ -632,45 +632,41 @@ class WebBrowser extends LitElement {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'DEPLOY_AT': {
|
// case 'DEPLOY_AT': {
|
||||||
const requiredFields = ['name', 'description', 'tags', 'creationBytes', 'amount', 'assetId', 'type'];
|
// const requiredFields = ['name', 'description', 'tags', 'creationBytes', 'amount', 'assetId', 'type'];
|
||||||
const missingFields = [];
|
// const missingFields = [];
|
||||||
|
|
||||||
requiredFields.forEach((field) => {
|
// requiredFields.forEach((field) => {
|
||||||
if (!data[field]) {
|
// if (!data[field]) {
|
||||||
missingFields.push(field);
|
// missingFields.push(field);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
if (missingFields.length > 0) {
|
// if (missingFields.length > 0) {
|
||||||
const missingFieldsString = missingFields.join(', ');
|
// const missingFieldsString = missingFields.join(', ');
|
||||||
const errorMsg = `Missing fields: ${missingFieldsString}`
|
// const errorMsg = `Missing fields: ${missingFieldsString}`
|
||||||
let data = {};
|
// let data = {};
|
||||||
data['error'] = errorMsg;
|
// data['error'] = errorMsg;
|
||||||
response = JSON.stringify(data);
|
// response = JSON.stringify(data);
|
||||||
break
|
// break
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
this.loader.show();
|
// this.loader.show();
|
||||||
const fee = data.fee || undefined
|
// const fee = data.fee || undefined
|
||||||
const resJoinGroup = await this._deployAt(data.name, data.description, data.tags, data.creationBytes, data.amount, data.assetId, fee, data.type)
|
// const resJoinGroup = await this._deployAt(data.name, data.description, data.tags, data.creationBytes, data.amount, data.assetId, fee, data.type)
|
||||||
response = JSON.stringify(resJoinGroup);
|
// response = JSON.stringify(resJoinGroup);
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
const obj = {};
|
// const obj = {};
|
||||||
const errorMsg = error.message || 'Failed to join the group.';
|
// const errorMsg = error.message || 'Failed to join the group.';
|
||||||
obj['error'] = errorMsg;
|
// obj['error'] = errorMsg;
|
||||||
response = JSON.stringify(obj);
|
// response = JSON.stringify(obj);
|
||||||
} finally {
|
// } finally {
|
||||||
this.loader.hide();
|
// this.loader.hide();
|
||||||
}
|
// }
|
||||||
// Params: data.creationBytes, data.name, data.description, data.type, data.tags, data.amount, data.assetId, data.fee
|
// break;
|
||||||
// TODO: prompt user to deploy an AT. If they confirm, sign+process a DEPLOY_AT transaction
|
// }
|
||||||
// then set the response string from the core to the `response` variable (defined above)
|
|
||||||
// If they decline, send back JSON that includes an `error` key, such as `{"error": "User declined request"}`
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
case 'GET_WALLET_BALANCE':
|
case 'GET_WALLET_BALANCE':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user