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

Commit 950d15f

Browse files
committed
pep8
1 parent 8bec792 commit 950d15f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ethereum/transactions.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ class Transaction(rlp.Serializable):
4242
('s', big_endian_int),
4343
]
4444

45-
def __init__(self, nonce, gasprice, startgas, to, value, data,
46-
v=0, r=0, s=0):
45+
def __init__(self, nonce, gasprice, startgas, to, value, data, v=0, r=0, s=0):
4746
if len(to) == 40:
4847
to = decode_hex(to)
4948
assert len(to) == 20 or len(to) == 0
50-
super(Transaction, self).__init__(nonce, gasprice, startgas, to,
51-
value, data, v, r, s)
49+
super(Transaction, self).__init__(nonce, gasprice, startgas, to, value, data, v, r, s)
5250
self.logs = []
5351

5452
# Determine sender
@@ -61,9 +59,7 @@ def __init__(self, nonce, gasprice, startgas, to, value, data,
6159
raise InvalidTransaction("Invalid signature values!")
6260
rlpdata = rlp.encode(self, UnsignedTransaction)
6361
rawhash = utils.sha3(rlpdata)
64-
pub = encode_pubkey(
65-
ecdsa_raw_recover(rawhash, (self.v, self.r, self.s)),
66-
'bin')
62+
pub = encode_pubkey(ecdsa_raw_recover(rawhash, (self.v, self.r, self.s)), 'bin')
6763
self.sender = utils.sha3(pub[1:])[-20:]
6864
else:
6965
self.sender = 0

0 commit comments

Comments
 (0)