Use apply-block for block

This commit is contained in:
lash 2023-02-11 12:47:42 +00:00
parent 0f7937d9b1
commit 07e87cf6ff
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 4 additions and 6 deletions

View File

@ -1,2 +1,2 @@
from .block_dialect_filter import CeloBlockDialectFilter
from .block_dialect_filter import *
from .util import CeloUtil

View File

@ -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
class DialectFilter(BaseDialectFilter):
def apply_block(self, block):
block.src['gas_limit'] = '0x0'