BitBoxSwiss / bitbox02-firmware

Firmware code of the BitBox02 hardware wallet
https://bitbox.swiss/bitbox02
Apache License 2.0
215 stars 80 forks source link

erc20_params: fix deterministic builds #1238

Closed benma closed 6 days ago

benma commented 6 days ago

Looping through a HashMap is not deterministic, so the order of the token vars was not deterministic in the generated tokens.rs, breaking deterministic builds. Using BTreeMap instead fixes it, as looping through a BTreeMap happens in key order.