Skip to content

Commit

Permalink
Sort the tokens table by contract address
Browse files Browse the repository at this point in the history
... to make our builds reproducible again.

Fixes keepkey/keepkey-firmware#212
  • Loading branch information
keepkeyjon committed Jan 16, 2020
1 parent 227948a commit 2986c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepkeylib/eth/ethereum_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def build(self):
self.add_tokens(network)

def serialize_c(self, outf):
for token in self.tokens:
for token in sorted(self.tokens, key=lambda t: t.token['address']):
token.serialize_c(outf)

def is_ascii(s):
Expand Down

0 comments on commit 2986c6a

Please sign in to comment.