Кошелёк Сияния: фактический расход с сервера, доработка UI и topup через compute budget

This commit is contained in:
AidarKC
2026-05-30 11:53:36 +04:00
parent edc94d3700
commit b75ac46781
5 changed files with 17 additions and 27 deletions
@@ -457,10 +457,12 @@ export async function updateShineUserPdaOnSolana({
],
data: ixData,
});
const computeIx = solana.ComputeBudgetProgram.setComputeUnitLimit({ units: 400_000 });
const heapIx = solana.ComputeBudgetProgram.requestHeapFrame({ bytes: 131_072 });
const signature = await solana.sendAndConfirmTransaction(
connection,
new solana.Transaction().add(edIxRoot, edIxBch, updIx),
new solana.Transaction().add(computeIx, heapIx, edIxRoot, edIxBch, updIx),
[deviceKeypair],
{ commitment: 'confirmed' },
);