mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fixing some more tests failing because of base58 update
This commit is contained in:
parent
b27f6f4b30
commit
a664c8320a
@ -172,7 +172,7 @@ class ValidatorElection(Transaction):
|
||||
|
||||
@classmethod
|
||||
def to_public_key(cls, election_id):
|
||||
return base58.b58encode(bytes.fromhex(election_id))
|
||||
return base58.b58encode(bytes.fromhex(election_id)).decode()
|
||||
|
||||
@classmethod
|
||||
def count_votes(cls, election_pk, transactions, getter=getattr):
|
||||
|
||||
@ -114,7 +114,7 @@ def test_output_deserialization(user_Ed25519, user_pub):
|
||||
'uri': user_Ed25519.condition_uri,
|
||||
'details': {
|
||||
'type': 'ed25519-sha-256',
|
||||
'public_key': b58encode(user_Ed25519.public_key),
|
||||
'public_key': b58encode(user_Ed25519.public_key).decode(),
|
||||
},
|
||||
},
|
||||
'public_keys': [user_pub],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user