Cleans up and formats Account Abstraction (AA) revert reasons by extracting the error code and message.
Handles null byte termination and standardizes the output format.
Parameters
revertReason: string
The raw revert reason string from the transaction
Returns string
A cleaned up revert reason in the format "AA{code} {message}"
Cleans up and formats Account Abstraction (AA) revert reasons by extracting the error code and message. Handles null byte termination and standardizes the output format.