Hi Guys , can someone help me with this error -
data: {
ok: false,
error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state',
code: 500
}
it would be really helpful
Jan 25, 2024, 6:25 AM
Trying to do swap on StonFi sdk
Here is the method i am trying to run -
const byteArray = Array.from( new TonWeb.boc.Cell(tonToJettonTxParams.payload).toBoc());
const binaryString = String.fromCharCode.apply(null, byteArray) ;
const base64Encoded = btoa(binaryString) ;
const d = await contract.createTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [internal({
value: tonToJettonTxParams.amount,
to: tonToJettonTxParams.to,
body: base64Encoded
})],
sendMode:2
});
await contract.send(d);
}
const byteArray = Array.from( new TonWeb.boc.Cell(tonToJettonTxParams.payload).toBoc());
const binaryString = String.fromCharCode.apply(null, byteArray) ;
const base64Encoded = btoa(binaryString) ;
const d = await contract.createTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [internal({
value: tonToJettonTxParams.amount,
to: tonToJettonTxParams.to,
body: base64Encoded
})],
sendMode:2
});
await contract.send(d);
}
Jan 25, 2024, 6:28 AM