diff --git a/common/defs/ethereum/released-definitions-timestamp.txt b/common/defs/ethereum/released-definitions-timestamp.txt index 36cbaf47a..c45f22d5b 100644 --- a/common/defs/ethereum/released-definitions-timestamp.txt +++ b/common/defs/ethereum/released-definitions-timestamp.txt @@ -1 +1 @@ -1669892465 +2023-04-03T13:44:24+00:00 diff --git a/common/tools/cointool.py b/common/tools/cointool.py index b22fd6aef..e38aad759 100755 --- a/common/tools/cointool.py +++ b/common/tools/cointool.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 from __future__ import annotations +import datetime import fnmatch import glob import json @@ -136,10 +137,13 @@ def render_file( `src` is a filename, `dst` is an open file object. """ template = mako.template.Template(filename=src) + eth_defs_date = datetime.datetime.fromisoformat( + DEFINITIONS_TIMESTAMP_PATH.read_text().strip() + ) result = template.render( support_info=support_info, supported_on=make_support_filter(support_info), - ethereum_defs_timestamp=int(DEFINITIONS_TIMESTAMP_PATH.read_text()), + ethereum_defs_timestamp=int(eth_defs_date.timestamp()), **coins, **MAKO_FILTERS, ) diff --git a/core/src/apps/ethereum/definitions_constants.py b/core/src/apps/ethereum/definitions_constants.py index 8797c1fab..063c0aba2 100644 --- a/core/src/apps/ethereum/definitions_constants.py +++ b/core/src/apps/ethereum/definitions_constants.py @@ -9,7 +9,7 @@ PUBLIC_KEYS = ( b"\xb8\xd2\xb2\x1d\xe2\x71\x24\xf0\x51\x1f\x90\x3a\xe7\xe6\x0e\x07\x96\x18\x10\xa0\xb8\xf2\x8e\xa7\x55\xfa\x50\x36\x7a\x8a\x2b\x8b", ) -MIN_DATA_VERSION = 1669892465 +MIN_DATA_VERSION = 1680529464 FORMAT_VERSION = b"trzd1" if __debug__: