From 07e87cf6ff61913a3ec3b864241ccbbbada4eaf8 Mon Sep 17 00:00:00 2001 From: lash Date: Sat, 11 Feb 2023 12:47:42 +0000 Subject: [PATCH] Use apply-block for block --- chainlib_eth_celo/__init__.py | 2 +- chainlib_eth_celo/block_dialect_filter.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/chainlib_eth_celo/__init__.py b/chainlib_eth_celo/__init__.py index cdda547..1f9489d 100644 --- a/chainlib_eth_celo/__init__.py +++ b/chainlib_eth_celo/__init__.py @@ -1,2 +1,2 @@ -from .block_dialect_filter import CeloBlockDialectFilter +from .block_dialect_filter import * from .util import CeloUtil diff --git a/chainlib_eth_celo/block_dialect_filter.py b/chainlib_eth_celo/block_dialect_filter.py index 3bef6b5..3d2932a 100644 --- a/chainlib_eth_celo/block_dialect_filter.py +++ b/chainlib_eth_celo/block_dialect_filter.py @@ -1,7 +1,5 @@ from chainlib.dialect import DialectFilter as BaseDialectFilter -class CeloBlockDialectFilter(BaseDialectFilter): - def apply_src(self, src): - src['gas_limit'] = '0x0' - return src - \ No newline at end of file +class DialectFilter(BaseDialectFilter): + def apply_block(self, block): + block.src['gas_limit'] = '0x0'