funga

Signer and keystore daemon and library for cryptocurrency software development
Log | Files | Refs | README | LICENSE

commit 4d064240f92d5a50ff10361899a77b4aedaaddd8
parent e7820de17fa67c5c8386aac029fec19de26226c7
Author: nolash <dev@holbrook.no>
Date:   Fri, 25 Dec 2020 12:00:58 +0100

Correct handler method params for sign

Diffstat:
Mcrypto_dev_signer/runnable/signer.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto_dev_signer/runnable/signer.py b/crypto_dev_signer/runnable/signer.py @@ -115,12 +115,12 @@ def eth_signTransaction(tx): return personal_sign_transaction([tx, '']) -def eth_sign(address, message): - logg.debug('got message {} to sign'.format(p[0])) - message_type = type(message).__name__ +def eth_sign(p): + logg.debug('got message {} to sign'.format(p[1])) + message_type = type(p[1]).__name__ if message_type != 'str': raise ValueError('invalid message format, must be {}, not {}'.format(message_type)) - return signer.signEthereumMessage(address, message.encode('utf-8')) + return signer.signEthereumMessage(p[0], p[1].encode('utf-8')) methods = {