You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle hardhat specific VM errors for a consistent ape experience as well as enabling support for ape test reverts-checking.
Specification
Will require not inheriting from ape_http
Catch errors related to contract logic and raise ContractLogicError (from ape.exceptions)
Raise OutOfGasError when the transaction runs out of gas
Raise VirtualMachineError for all other errors that occur in VM
^ See ape-http implementation as an example, but NOTE: the errors will be different so handling them will be different. One major difference may be the OutOfGasError, which has a base error that does not get raised in Geth but it does in Hardhat.
Dependencies
na
The text was updated successfully, but these errors were encountered:
Looking at this more, the middleware aspect may not be needed. It is worth experimenting with, as it may be a better spot ti manipulate response data earlier on.
antazoey
changed the title
raise VirtualMachineErrors
raise VirtualMachineErrors and ContractLogicErrors
Nov 7, 2021
antazoey
changed the title
raise VirtualMachineErrors and ContractLogicErrors
Handle and raise VM / TX related Errors
Nov 7, 2021
Overview
Handle hardhat specific VM errors for a consistent ape experience as well as enabling support for
ape test
reverts-checking.Specification
ape_http
ContractLogicError
(fromape.exceptions
)OutOfGasError
when the transaction runs out of gasVirtualMachineError
for all other errors that occur in VM^ See
ape-http
implementation as an example, but NOTE: the errors will be different so handling them will be different. One major difference may be theOutOfGasError
, which has a base error that does not get raised in Geth but it does in Hardhat.Dependencies
na
The text was updated successfully, but these errors were encountered: