"vm_error_info": {
"error_message": "VMError with status ABORTED with sub status 2 at location Module ModuleId { address: 0000000000000000000000000000000000000000000000000000000000000002, name: Identifier(\"module_store\") } and message 0x0000000000000000000000000000000000000000000000000000000000000002::module_store::publish_package_entry at offset 62 at code offset 62 in function definition 25",
"execution_state": []
}
The developer need to check the source file for the reason or use rooch move explain to expain framework's abort reason. And what's more to auto explain the reason to end user.
Proposal
Can we store error map onchain when publishing modules, and then add an abort reason field in the transation output?
Proposal Details
Fow now, if a txn fails, the output message is like:
or
The developer need to check the source file for the reason or use
rooch move explain
to expain framework's abort reason. And what's more to auto explain the reason to end user.Proposal Can we store error map onchain when publishing modules, and then add an
abort reason
field in the transation output?