kopia lustrzana https://github.com/bugout-dev/moonworm
Typo and black fix
rodzic
f267e1122f
commit
fceb943aa1
|
@ -81,7 +81,9 @@ class MoonstreamEthereumStateProvider(EthereumStateProvider):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _transform_to_w3_tx(
|
def _transform_to_w3_tx(
|
||||||
tx_raw: Union[EthereumTransaction, MumbaiTransaction, PolygonTransaction, XDaiTransaction],
|
tx_raw: Union[
|
||||||
|
EthereumTransaction, MumbaiTransaction, PolygonTransaction, XDaiTransaction
|
||||||
|
],
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
tx = {
|
tx = {
|
||||||
"blockNumber": tx_raw.block_number,
|
"blockNumber": tx_raw.block_number,
|
||||||
|
|
|
@ -33,12 +33,12 @@ MODELS: Dict[Network, Dict[str, Base]] = {
|
||||||
"labels": EthereumLabel,
|
"labels": EthereumLabel,
|
||||||
"transactions": EthereumTransaction,
|
"transactions": EthereumTransaction,
|
||||||
},
|
},
|
||||||
Network.polygon: {
|
Network.mumbai: {
|
||||||
"blocks": MumbaiBlock,
|
"blocks": MumbaiBlock,
|
||||||
"labels": MumbaiLabel,
|
"labels": MumbaiLabel,
|
||||||
"transactions": MumbaiTransaction,
|
"transactions": MumbaiTransaction,
|
||||||
},
|
},
|
||||||
Network.mumbai: {
|
Network.polygon: {
|
||||||
"blocks": PolygonBlock,
|
"blocks": PolygonBlock,
|
||||||
"labels": PolygonLabel,
|
"labels": PolygonLabel,
|
||||||
"transactions": PolygonTransaction,
|
"transactions": PolygonTransaction,
|
||||||
|
|
Ładowanie…
Reference in New Issue