Skip to content

Commit

Permalink
Fix signTransaction return values for r and s
Browse files Browse the repository at this point in the history
  • Loading branch information
bargst committed Jun 12, 2018
1 parent 0e46969 commit 6212a87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eth_account/signers/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
serializable_unsigned_transaction_from_dict,
)

from eth_utils import (
to_hex,
)

from eth_utils.curried import (
keccak,
)
Expand Down Expand Up @@ -186,7 +190,7 @@ def signTransaction(self, transaction_dict):
return AttributeDict({
'rawTransaction': HexBytes(rlp_encoded),
'hash': HexBytes(transaction_hash),
'r': r,
's': s,
'v': v,
'r': to_hex(r),
's': to_hex(s),
})

0 comments on commit 6212a87

Please sign in to comment.