I keep on getting Error while executing transaction: External message not accepted by smart contract ... Does someone have an idea what can caue that? I do have a () recv_external(slice in_msg_body) impure function in my func code
Dec 23, 2023, 3:08 AM
Contract decides whether it accepts an external message or not (since *it* pays for the message processing in that case). To do so, it needs to call accept_message();
Dec 23, 2023, 7:30 AM
Right, it makes sense the contract should decide since it pays the gas. Thanks a lot mate!
Dec 23, 2023, 11:20 AM
I understand that the SC must call accept_message. But what does this error actually mean and when is it thrown? Why does it say while executing transaction? is the gas credit used up?
Dec 23, 2023, 5:59 PM
The main part it says is "External message not accepted by smart contract".
Dec 23, 2023, 6:00 PM
I do some validations before accepting the message and they may throw errors. Then in SandBox I tried to identify such errors in transactions.
What am I doing wrong? Is it the case that in such settings no transaction is submitted?
What am I doing wrong? Is it the case that in such settings no transaction is submitted?
Dec 23, 2023, 6:13 PM
Yes, failed external messages don't make it to the blockchain.
Dec 23, 2023, 6:13 PM