Skip to content

Commit

Permalink
Fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Mar 12, 2024
1 parent 4a23064 commit d43ee77
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions eth/vm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def apply_all_transactions(
result_header = self.add_receipt_to_header(previous_header, receipt)
previous_header = result_header

# cancun and beyond
result_header = self.increment_blob_gas_used(previous_header, transaction)
previous_header = result_header

Expand Down
2 changes: 1 addition & 1 deletion eth/vm/forks/berlin/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class BerlinTransactionBuilder(TransactionBuilderAPI):

legacy_signed = BerlinLegacyTransaction
legacy_unsigned = BerlinUnsignedLegacyTransaction
typed_transaction: type[TypedTransaction] = TypedTransaction
typed_transaction: Type[TypedTransaction] = TypedTransaction

@classmethod
def decode(cls, encoded: bytes) -> SignedTransactionAPI:
Expand Down
2 changes: 1 addition & 1 deletion eth/vm/forks/cancun/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class CancunTypedTransaction(TypedTransaction):
class CancunTransactionBuilder(ShanghaiTransactionBuilder):
legacy_signed = CancunLegacyTransaction
legacy_unsigned = CancunUnsignedLegacyTransaction
typed_transaction: type[TypedTransaction] = CancunTypedTransaction
typed_transaction: Type[TypedTransaction] = CancunTypedTransaction

@classmethod
def new_unsigned_blob_transaction(
Expand Down
2 changes: 1 addition & 1 deletion eth/vm/forks/frontier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def increment_blob_gas_used(
self, old_header: BlockHeaderAPI, transaction: TransactionFieldsAPI
) -> BlockHeaderAPI:
# This is only relevant for the Cancun fork and later
pass
return old_header

@classmethod
def calculate_net_gas_refund(cls, consumed_gas: int, gross_refund: int) -> int:
Expand Down
2 changes: 1 addition & 1 deletion eth/vm/forks/london/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class LondonTypedTransaction(TypedTransaction):
class LondonTransactionBuilder(BerlinTransactionBuilder):
legacy_signed = LondonLegacyTransaction
legacy_unsigned = LondonUnsignedLegacyTransaction
typed_transaction: type[TypedTransaction] = LondonTypedTransaction
typed_transaction: Type[TypedTransaction] = LondonTypedTransaction

@classmethod
def new_unsigned_dynamic_fee_transaction(
Expand Down
6 changes: 6 additions & 0 deletions eth/vm/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ def get_tip(self, transaction: SignedTransactionAPI) -> int:
def get_gas_price(self, transaction: SignedTransactionAPI) -> int:
return transaction.gas_price

@property
def blob_base_fee(self) -> int:
raise NotImplementedError(
"Basefee opcode is not implemented prior to Cancun hard fork"
)

#
# Access to account db
#
Expand Down

0 comments on commit d43ee77

Please sign in to comment.