Skip to content

Commit c8bdbd4

Browse files
wolovimkclowes
authored andcommitted
repair conflicts
1 parent 616ca30 commit c8bdbd4

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

web3/_utils/method_formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@
8181
)
8282
from web3.exceptions import (
8383
BlockNotFound,
84+
InvalidParityMode,
8485
SolidityError,
8586
TransactionNotFound,
86-
InvalidParityMode,
8787
)
8888
from web3.types import (
8989
BlockIdentifier,

web3/parity.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
Callable,
33
List,
44
Optional,
5-
<<<<<<< HEAD
6-
=======
75
Tuple,
8-
>>>>>>> Add typing to parity module
96
Union,
107
)
118

@@ -106,13 +103,8 @@ def list_storage_keys_munger(
106103
address: Union[Address, ChecksumAddress, ENS, Hash32],
107104
quantity: int,
108105
hash_: Hash32,
109-
<<<<<<< HEAD
110106
block_identifier: Optional[BlockIdentifier] = None,
111-
) -> List[Hash32]:
112-
=======
113-
block_identifier: Optional[BlockIdentifier]=None,
114107
) -> Tuple[Union[Address, ChecksumAddress, ENS, Hash32], int, Hash32, BlockIdentifier]:
115-
>>>>>>> Add typing to parity module
116108
if block_identifier is None:
117109
block_identifier = self.defaultBlock
118110
return (address, quantity, hash_, block_identifier)
@@ -133,7 +125,7 @@ def list_storage_keys_munger(
133125
)
134126

135127
def trace_replay_transaction_munger(
136-
self, block_identifier: Union[_Hash32, BlockIdentifier], mode: ParityTraceMode=['trace']
128+
self, block_identifier: Union[_Hash32, BlockIdentifier], mode: ParityTraceMode = ['trace']
137129
) -> Tuple[Union[BlockIdentifier, _Hash32], ParityTraceMode]:
138130
return (block_identifier, mode)
139131

@@ -165,8 +157,8 @@ def trace_replay_transaction_munger(
165157
def trace_call_munger(
166158
self,
167159
transaction: TxParams,
168-
mode: ParityTraceMode=['trace'],
169-
block_identifier: Optional[BlockIdentifier]=None
160+
mode: ParityTraceMode = ['trace'],
161+
block_identifier: Optional[BlockIdentifier] = None
170162
) -> Tuple[TxParams, ParityTraceMode, BlockIdentifier]:
171163
# TODO: move to middleware
172164
if 'from' not in transaction and is_checksum_address(self.web3.eth.defaultAccount):
@@ -184,7 +176,7 @@ def trace_call_munger(
184176
)
185177

186178
def trace_transactions_munger(
187-
self, raw_transaction: HexStr, mode: ParityTraceMode=['trace']
179+
self, raw_transaction: HexStr, mode: ParityTraceMode = ['trace']
188180
) -> Tuple[HexStr, ParityTraceMode]:
189181
return (raw_transaction, mode)
190182

0 commit comments

Comments
 (0)