From f132be3b52f2691a8a3bcd6032d597e824ca2091 Mon Sep 17 00:00:00 2001 From: Fabio Date: Mon, 2 Oct 2023 13:30:35 -0300 Subject: [PATCH 1/2] Fix TransactionType mapping --- ape_bsc/ecosystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape_bsc/ecosystem.py b/ape_bsc/ecosystem.py index d8f8381..93d12ad 100644 --- a/ape_bsc/ecosystem.py +++ b/ape_bsc/ecosystem.py @@ -84,7 +84,7 @@ def _get_transaction_type(_type: Optional[Union[int, str, bytes]]) -> Transactio if len(suffix) == 1: _type = f"{_type.rstrip(suffix)}0{suffix}" - return TransactionType(add_0x_prefix(HexStr(_type))) + return TransactionType(add_0x_prefix(int(HexStr(_type), 0)) class ApeBSCError(ApeException): From 9313a7105e46ee5db586deef56e64d4144889807 Mon Sep 17 00:00:00 2001 From: Fabio Date: Mon, 2 Oct 2023 13:34:59 -0300 Subject: [PATCH 2/2] missing closing --- ape_bsc/ecosystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape_bsc/ecosystem.py b/ape_bsc/ecosystem.py index 93d12ad..da23ff3 100644 --- a/ape_bsc/ecosystem.py +++ b/ape_bsc/ecosystem.py @@ -84,7 +84,7 @@ def _get_transaction_type(_type: Optional[Union[int, str, bytes]]) -> Transactio if len(suffix) == 1: _type = f"{_type.rstrip(suffix)}0{suffix}" - return TransactionType(add_0x_prefix(int(HexStr(_type), 0)) + return TransactionType(add_0x_prefix(int(HexStr(_type), 0))) class ApeBSCError(ApeException):