Hi

DO you maybe know what is the following error?
trying to

data: { ok: false,
error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted\n' + 'Cannot run message on account: inbound external message rejected by transaction 0C713C0536A545C111085B8F88E7A47E69957D90F4FDF202384A72CCDF5E1FFE:\n' +
'exitcode=11, steps=4, gas_used=0\n' + 'VM Log (truncated):\n' +
'...execute SETCP 0\n' + 'execute DICTPUSHCONST 19 (xC_,1)\n' +
'execute DICTIGETJMPZ\n' + 'execute THROWARG 11\n' +
'default exception handler, terminating vm with exit code 11\n', code: 500


seqno it does not seem to be as when I get the seqno from client is 11 but I have tried to execute it with seqno from 1 to 100 but it does not work.

const resp = await cl.sendFile(Buffer.from(txRaw, 'base64'));

Nov 1, 2023, 6:16 PM
Most likely the method is not found
Nov 1, 2023, 6:17 PM
you mean op_code method or something?
Nov 1, 2023, 6:18 PM
Are you sure the contract accepts external messages?
Nov 1, 2023, 6:19 PM
https://testnet.tonviewer.com/EQAMcTwFNqVFwREIW4-I56R-aZV9kPT98gI4SnLM314f_pCa
that is the contract
I think it does based on the history of txs
Nov 1, 2023, 6:20 PM
As I see, it only handles internal messages.
Nov 1, 2023, 6:20 PM
Please also use other explorer (https://testnet.tonscan.org/address/kQAMcTwFNqVFwREIW4-I56R-aZV9kPT98gI4SnLM314f_isQ) which shows incoming messages that called the contract.
Nov 1, 2023, 6:22 PM
how do you see its only internal messages?
Nov 1, 2023, 6:23 PM
In disassembled code, there is no recv_external.
Nov 1, 2023, 6:23 PM
and in this case how could someone possibly transfer funds there?
Nov 1, 2023, 6:24 PM
By sending a message from wallet.
Nov 1, 2023, 6:25 PM
I did send fine using MyTonWallet. But when I try to transfer using my code it throws the error mentioned
Nov 1, 2023, 6:25 PM
You probably want to send external message to your wallet to order it to transfer funds to the contract.
Nov 1, 2023, 6:26 PM
do you have an example :) ☺️
Nov 1, 2023, 6:26 PM
However, if you don't understand contract mechanics, you probably should not do this.
Nov 1, 2023, 6:26 PM
this is testnet :) I am trying to understand
Nov 1, 2023, 6:27 PM
Do you already happen to know the transaction structure (or at least count) if you're sending funds from one wallet to another?
Nov 1, 2023, 6:28 PM
yeah
Nov 1, 2023, 6:28 PM
So, how many?
Nov 1, 2023, 6:28 PM
you are asking about the seqno? the transaction stracture?
Nov 1, 2023, 6:30 PM
The transactions.
Nope. What happens when you send money to other contract?
Nov 1, 2023, 6:32 PM
You want me to explain message delivery for TON?
Nov 1, 2023, 6:34 PM
On a bit higher level: what messages are there and what transactions will be done.
Nov 1, 2023, 6:34 PM
you call method funds delivered
You send message calling a function from a smart contract, smart contract replies back. In TON inbound message is trigered and sets the outbound
Nov 1, 2023, 6:36 PM
Not precisely so.

You send external message to your wallet.
There is transaction on your wallet, processing the message, accepting it and sending the funds.
So your wallet sends internal message to the second one.

There is transaction on the second wallet; for v4r2, it ensures that the message doesn't need processing.
In total, there are 2 messages and 2 transactions.
Nov 1, 2023, 6:38 PM
I see
Nov 1, 2023, 6:38 PM
Now, do you want to guess how many messages are there when you send NFT?
Nov 1, 2023, 6:48 PM
.
Nov 8, 2023, 3:34 AM

© 2024 Draquery.com All rights reserved.