Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 04b10d2

Browse files
committed
PEP8
1 parent bf639b8 commit 04b10d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ethereum/processblock.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ethereum.exceptions import InvalidNonce, InsufficientStartGas, UnsignedTransaction, \
1111
BlockGasLimitReached, InsufficientBalance, VerificationFailed
1212
from ethereum.utils import safe_ord, normalize_address, mk_contract_address, \
13-
mk_metropolis_contract_address, int_to_addr, big_endian_to_int
13+
mk_metropolis_contract_address, big_endian_to_int
1414
from ethereum import transactions
1515
import ethereum.config as config
1616

@@ -309,12 +309,12 @@ def create_contract(ext, msg):
309309
if ext._block.number >= ext._block.METROPOLIS_FORK_BLKNUM:
310310
msg.to = mk_metropolis_contract_address(msg.sender, code)
311311
if ext.get_code(msg.to):
312-
if ext.get_nonce(msg.to) >= 2**40:
313-
ext.set_nonce(msg.to, (ext.get_nonce(msg.to) + 1) % 2**160)
314-
msg.to = normalize_address((ext.get_nonce(msg.to) - 1) % 2**160)
312+
if ext.get_nonce(msg.to) >= 2 ** 40:
313+
ext.set_nonce(msg.to, (ext.get_nonce(msg.to) + 1) % 2 ** 160)
314+
msg.to = normalize_address((ext.get_nonce(msg.to) - 1) % 2 ** 160)
315315
else:
316-
ext.set_nonce(msg.to, (big_endian_to_int(msg.to) + 2) % 2**160)
317-
msg.to = normalize_address((ext.get_nonce(msg.to) - 1) % 2**160)
316+
ext.set_nonce(msg.to, (big_endian_to_int(msg.to) + 2) % 2 ** 160)
317+
msg.to = normalize_address((ext.get_nonce(msg.to) - 1) % 2 ** 160)
318318
else:
319319
if ext.tx_origin != msg.sender:
320320
ext._block.increment_nonce(msg.sender)

0 commit comments

Comments
 (0)