Add fix for transaction type.

pull/767/head
Andrey 2023-03-09 11:32:54 +02:00
rodzic b85939595c
commit 082ca2b867
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -152,7 +152,7 @@ def add_block_transactions(
input=tx.input,
nonce=tx.nonce,
transaction_index=tx.transactionIndex,
transaction_type=int(tx["type"], 0) if tx["type"] is not None else None,
transaction_type=int(tx["type"], 0) if tx.get("type") is not None else None,
value=tx.value,
)