-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug][compiler-v2] Inconsistent VM status reported for transaction errors in Move-2 modules #15666
Comments
@0xAnto Was the contract compiled using compiler v1 during the execution of the transaction, and later upgraded (by compiling the contract with v2 or making modifications to the contract and republishing it)? |
It was deployed using |
@0xAnto Thank you. Was this possibly the sequence of operations that occurred:
And we are talking about the transaction executed in step 2 in the above described bug. |
@vineethk Yeah, I might have added new functions to that contract, but it happened again with a new contract. I haven’t changed anything since the initial code was published with |
As discussed internally, this is unfortunately very hard to fix. Simulation uses a specific code path making more error information available, which is not available in regular execution. Not sure when we get to this. |
🐛 Bug
Inconsistent VM status reported for testnet transaction errors in Move-2 modules.
To reproduce
Transaction ID: 6583611373 shows incorrect VM status in multiple interfaces:
Reported VM Status: (in explorer)
Actual Error (from transaction replay):
Expected Behavior
VM status should correctly reflect the arithmetic error (subtraction overflow) instead of showing an irrelevant failure message.
System information
Please complete the following information:
5.1.0
The text was updated successfully, but these errors were encountered: