Open charil10 opened 1 week ago
Please refer to another issue. This developer seems to have encountered a similar problem to yours.
Can I ask if the network you are deploying the contract to is using one of the java-tron releases, or is it compiled from source code that has been modified by the developer?
yes I have changed the source code of the java tron as per my requirments. but the changes I have changed the prefix of addresses only @yanghang8612 , the issue you are referring is kinda same I guess it occure when We use arrays in the smart contract
You can try deploying this contract on the nile testnet and sending the same transactions to test if the exception still occurs.
Here is the nile link
@yanghang8612 I have changed the source code of VM, so I dont think it will cause any issue on Nile testnet as before deployment we tested on it. My question is is there any changes in 4.7.3Version of TVM related to address and transactions, which result bad destination
The version - 4.7.3 of java-tron is a non-mandatory upgrade, which contains no corresponding changes to TVM related to address and transactions.
@yanghang8612 can you please tell me the possible reasons to get this error : BAD_JUMP_DESTINATION I will try to fix the cases and will upload fixed build on mainnet.
Invalid Jump Destination: In the TVM, jump operations (such as JUMP
and JUMPI
instructions) must jump to a valid location in the code. If the jump destination is not a valid JUMPDEST
instruction (e.g., jumping to a data section or an invalid location), it will cause a BAD_JUMP_DESTINATION
error.
Contract Code Errors: If there are errors in the smart contract code, it can lead to incorrect execution logic, which might attempt to jump to an invalid location. This is often due to logical errors in the contract during development or issues with the code generation tools.
Decompiler or Compiler Issues: Sometimes, the decompiler or compiler being used might generate erroneous bytecode, leading to this error during execution.
Malicious Contracts: If interacting with a malicious smart contract, these contracts might intentionally cause such errors to confuse the caller or achieve some malicious intent.
Hello, I have deployed the custom Tron based Blockchain, I am facing an issue when I am hitting a function of smart contract it gives me this result:BAD_JUMP_DESTINATION
this is the transaction receipt:
QUESTIONS: What is the meaning of this error and what is the cause of this error. How Can I fix and solve this issue.
Following is the code of function which Im interacting.: