free upload support

This commit is contained in:
user 2025-03-14 00:37:26 +03:00
parent 2274cb4a4a
commit 0b1dc23cc6
1 changed files with 16 additions and 15 deletions

View File

@ -99,21 +99,22 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
}); });
if (createContentResponse.data) { if (createContentResponse.data) {
const transactionResponse = await tonConnectUI.sendTransaction({ if (createContentResponse.data.address != null) {
validUntil: Math.floor(Date.now() / 1000) + 120, const transactionResponse = await tonConnectUI.sendTransaction({
messages: [ validUntil: Math.floor(Date.now() / 1000) + 120,
{ messages: [
amount: createContentResponse.data.amount, {
address: createContentResponse.data.address, amount: createContentResponse.data.amount,
payload: createContentResponse.data.payload, address: createContentResponse.data.address,
}, payload: createContentResponse.data.payload,
], },
}); ],
});
if (transactionResponse.boc) { if (transactionResponse.boc) {
WebApp.close(); WebApp.close();
} else { } else {
console.error("Transaction failed:", transactionResponse); console.error("Transaction failed:", transactionResponse);
}
} }
} }