Я продолжаю получать эту ошибку: < /p>
uncaught (по обещанию) Синтаксиртор: не может преобразовать 22,42,79,4,0,0,0,0 в Bigint.
Код: Выделить всё
Layout.js:2094 Uncaught (in promise) TypeError: Blob.encode[lamports] requires (length 8) Uint8Array as src
at Blob.encode (Layout.js:2094:19)
at bigIntLayout.encode (bigint.ts:31:14)
at Structure.encode (Layout.js:1092:36)
at encodeData (instruction.ts:32:15)
at SystemProgram.transfer (system.ts:796:14)
at sendTransaction (script.js:85:34)
< /code>
Похоже, что я застрял в цикле - когда я исправляю синтаксисерсор, появляется ошибка blob.encode, и наоборот.async function sendTransaction() {
const provider = window.solana;
if (!provider || !provider.isPhantom) {
console.error("❌ Phantom Wallet not found!");
alert("Phantom wallet not detected!");
return;
}
const balanceBigInt = BigInt(balance);
// Set the gas fee (0.001 SOL)
const gasFee = BigInt(1000000);
if (balanceBigInt
Подробнее здесь: [url]https://stackoverflow.com/questions/79502238/cant-fix-uncaught-in-promise-syntaxerror-cannot-convert-22-42-79-4-0-0-0-0-to[/url]
Мобильная версия