From 4049d2bbe2a29652c630dd96f8642b40dfe4dcb5 Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Tue, 29 Oct 2024 13:04:01 +0700 Subject: [PATCH] chore(ci): fix tox framework. --- src/cli/eofwrap.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/cli/eofwrap.py b/src/cli/eofwrap.py index da641db61c..e7707bbab2 100644 --- a/src/cli/eofwrap.py +++ b/src/cli/eofwrap.py @@ -176,7 +176,11 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool): if fixture.pre: for address, account in fixture.pre.root.items(): - if account is None or account.code is None or len(account.code) == 0: + if ( + account is None + or account.code is None + or len(account.code) == 0 + ): continue try: @@ -184,7 +188,8 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool): except ValueError as e: self.metrics[self.ACCOUNTS_INVALID_EOF] += 1 _inc_counter( - self.metrics[self.VALIDATION_ERRORS], self._short_exception_msg(e) + self.metrics[self.VALIDATION_ERRORS], + self._short_exception_msg(e), ) continue @@ -210,7 +215,9 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool): self.unique_eof.update(fixture_eof_codes) self.metrics[self.UNIQUE_ACCOUNTS_WRAPPED] = len(self.unique_eof) except Exception as e: - _inc_counter(self.metrics[self.GENERATION_ERRORS], self._short_exception_msg(e)) + _inc_counter( + self.metrics[self.GENERATION_ERRORS], self._short_exception_msg(e) + ) self.metrics[self.FIXTURES_CANT_GENERATE] += 1 self.metrics[self.ACCOUNTS_CANT_GENERATE] += len(fixture_eof_codes) @@ -262,13 +269,10 @@ def _wrap_fixture(self, fixture: BlockchainFixture, traces: bool): base_fee_per_gas=header.base_fee_per_gas, withdrawals_root=header.withdrawals_root, parent_beacon_block_root=header.parent_beacon_block_root, - requests_root=header.requests_root, + requests_hash=header.requests_hash, ) assert not fixture_block.ommers assert not fixture_block.withdrawals - assert not fixture_block.deposit_requests - assert not fixture_block.withdrawal_requests - assert not fixture_block.consolidation_requests for fixture_tx in fixture_block.txs: fixture_tx_dump = fixture_tx.model_dump()