-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tx, Block, VM: Consistent Error Context for Error Messages (#1540)
* block: added consistent error context to error messages * blockchain: fixed test * block: internalized _errorPostfix creation to only call hash() function in error case, made _error() protected (do not call from the outside but keep extensible), more robust error case hash creation * tx: added consistent error context for error msgs to all tx types * vm -> runBlock(): added consistent error context to error messages * tx, block: separate msg creation and error object instantiation on error annotation for cleaner stack trace * tx, block, vm: added public errorStr() methods to block and tx for a compact error representation of the object, adding consistent error context to VM.runTx() * tx: hardhat E2E error msg fix
- Loading branch information
Showing
14 changed files
with
440 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.