aiohttp.client_exceptions.ClientResponseError: 406, message='error code: 0 message: cannot apply external message to current state : External message was not accepted\nCannot run message on account: inbound external message rejected by transaction BD9CB4F0F6B64AA9934BB38D953CAA74EC8F284CB632E78B2D02AD4D235F0FC5:\nexitcode=33, steps=23, gas_used=0\nVM Log (truncated):\n...te NOW\nexecute LEQ\nexecute THROWIF 36\nexecute PUSH c4\nexecute CTOS\nexecute LDU 32\nexecute LDU 32\nexecute LDU 256\nexecute LDDICT\nexecute ENDS\nexecute XCPU s4,s3\nexecute EQUAL\nexecute THROWIFNOT 33\ndefault exception handler, terminating vm with exit code 33\n', url=URL('https://testnet.tonapi.io/v2/blockchain/message')
\wallet\contract_base.py
FIX:
` async def raw_transfer(
self,
messages: Optional[List[WalletMessage]] = None,
**kwargs,
) -> str:
"""
Perform a raw transfer operation.
:param messages: The list of wallet messages to transfer.
:return: The hash of the transfer message.
"""
if messages is None:
messages = []
seqno = kwargs.get("seqno", None)
if seqno is None:
**kwargs["seqno"] = (await self.get_seqno(self.client, self.address)) + 1**
body = self.raw_create_transfer_msg(
private_key=self.private_key,
messages=messages or [],
**kwargs,
)
message = self.create_external_msg(dest=self.address, body=body)
message_boc_hex, message_hash = message_to_boc_hex(message)
await self.client.send_message(message_boc_hex)
return message_hash`
on jetton mint function
aiohttp.client_exceptions.ClientResponseError: 406, message='error code: 0 message: cannot apply external message to current state : External message was not accepted\nCannot run message on account: inbound external message rejected by transaction BD9CB4F0F6B64AA9934BB38D953CAA74EC8F284CB632E78B2D02AD4D235F0FC5:\nexitcode=33, steps=23, gas_used=0\nVM Log (truncated):\n...te NOW\nexecute LEQ\nexecute THROWIF 36\nexecute PUSH c4\nexecute CTOS\nexecute LDU 32\nexecute LDU 32\nexecute LDU 256\nexecute LDDICT\nexecute ENDS\nexecute XCPU s4,s3\nexecute EQUAL\nexecute THROWIFNOT 33\ndefault exception handler, terminating vm with exit code 33\n', url=URL('https://testnet.tonapi.io/v2/blockchain/message')
\wallet\contract_base.py
FIX:
` async def raw_transfer( self, messages: Optional[List[WalletMessage]] = None, **kwargs, ) -> str: """ Perform a raw transfer operation.