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'