diff --git a/chainlib_eth_celo/block_dialect_filter.py b/chainlib_eth_celo/block_dialect_filter.py index 3d2932a..f647a99 100644 --- a/chainlib_eth_celo/block_dialect_filter.py +++ b/chainlib_eth_celo/block_dialect_filter.py @@ -1,5 +1,16 @@ -from chainlib.dialect import DialectFilter as BaseDialectFilter +from chainlib.eth.dialect import DialectFilter as BaseDialectFilter + class DialectFilter(BaseDialectFilter): def apply_block(self, block): block.src['gas_limit'] = '0x0' + + + def apply_src(self, src): + src = super(DialectFilter, self).apply_src(src) + try: + if src['gas_price'] == None: + src['gas_price'] = '0x0' + except KeyError: + pass + return src