mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-31 05:36:59 +00:00
Fix conflicts
This commit is contained in:
parent
5f0b5ec4ef
commit
c9a6783683
@ -294,9 +294,6 @@ export const publishOnQDN = async ({
|
|||||||
}) => {
|
}) => {
|
||||||
if (data && service) {
|
if (data && service) {
|
||||||
const registeredName = name || (await getNameInfo());
|
const registeredName = name || (await getNameInfo());
|
||||||
}) => {
|
|
||||||
if (data && service) {
|
|
||||||
const registeredName = await getNameInfo();
|
|
||||||
if (!registeredName)
|
if (!registeredName)
|
||||||
throw new Error(
|
throw new Error(
|
||||||
i18n.t('core:message.generic.name_publish', {
|
i18n.t('core:message.generic.name_publish', {
|
||||||
|
@ -83,29 +83,25 @@ async function getKeyPair() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const publishData = async ({
|
export const publishData = async ({
|
||||||
|
category,
|
||||||
data,
|
data,
|
||||||
|
description,
|
||||||
feeAmount,
|
feeAmount,
|
||||||
filename,
|
filename,
|
||||||
identifier,
|
identifier,
|
||||||
isBase64,
|
isBase64,
|
||||||
registeredName,
|
registeredName,
|
||||||
file,
|
|
||||||
service,
|
service,
|
||||||
identifier,
|
|
||||||
uploadType,
|
|
||||||
withFee,
|
|
||||||
title,
|
|
||||||
description,
|
|
||||||
category,
|
|
||||||
tag1,
|
tag1,
|
||||||
tag2,
|
tag2,
|
||||||
tag3,
|
tag3,
|
||||||
tag4,
|
tag4,
|
||||||
tag5,
|
tag5,
|
||||||
|
title,
|
||||||
|
uploadType,
|
||||||
|
withFee,
|
||||||
}: any) => {
|
}: any) => {
|
||||||
console.log('data', data);
|
console.log('data', data);
|
||||||
feeAmount,
|
|
||||||
}: any) => {
|
|
||||||
const validateName = async (receiverName: string) => {
|
const validateName = async (receiverName: string) => {
|
||||||
return await reusableGet(`/names/${receiverName}`);
|
return await reusableGet(`/names/${receiverName}`);
|
||||||
};
|
};
|
||||||
@ -232,7 +228,7 @@ export const publishData = async ({
|
|||||||
|
|
||||||
let transactionBytes = await uploadData(registeredName, data, fee);
|
let transactionBytes = await uploadData(registeredName, data, fee);
|
||||||
console.log('transactionBytes length', transactionBytes?.length);
|
console.log('transactionBytes length', transactionBytes?.length);
|
||||||
|
|
||||||
if (!transactionBytes || transactionBytes.error) {
|
if (!transactionBytes || transactionBytes.error) {
|
||||||
throw new Error(transactionBytes?.message || 'Error when uploading');
|
throw new Error(transactionBytes?.message || 'Error when uploading');
|
||||||
} else if (transactionBytes.includes('Error 500 Internal Server Error')) {
|
} else if (transactionBytes.includes('Error 500 Internal Server Error')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user