We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider:
// A.sol contract A { constructor() { revert(); } }
# script.py from woke.testing import * from pytypes.A import A @default_chain.connect() def script(): default_chain.set_default_accounts(default_chain.accounts[0]) with must_revert() as e: a = A.deploy() script()
I would expect the error to be caught (correct me if my estimate is wrong). Instead, I get
Launching anvil --prune-history 100 --transaction-block-keeper 10 --steps-tracing --silent --port 59103 Traceback (most recent call last): File "script.py", line 10, in <module> script() ... File "/Users/dteiml/.virtualenvs/23-06-rs-sudoku/lib/python3.8/site-packages/woke/development/transactions.py", line 460, in raw_error self._trace_transaction[0]["result"]["output"][2:] KeyError: 'output'
The text was updated successfully, but these errors were encountered:
This is a bug in Anvil (+ ethers-rs): foundry-rs/foundry#4853 gakonst/ethers-rs#2392
Sorry, something went wrong.
Implemented a workaround in 0b7ba19 at a cost of decreased performance (we need to fetch debug_traceTransaction instead of trace_transaction).
debug_traceTransaction
trace_transaction
No branches or pull requests
Consider:
I would expect the error to be caught (correct me if my estimate is wrong). Instead, I get
The text was updated successfully, but these errors were encountered: