Skip to content

Commit

Permalink
fix(core): bitcoin-only all_modules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Oct 7, 2021
1 parent d460e93 commit ee924c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/.changelog.d/1633.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove altcoin message definitions from bitcoin-only build.
6 changes: 3 additions & 3 deletions core/src/all_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@
import apps.bitcoin.sign_tx.tx_info
apps.bitcoin.sign_tx.tx_weight
import apps.bitcoin.sign_tx.tx_weight
apps.bitcoin.sign_tx.zcash
import apps.bitcoin.sign_tx.zcash
apps.bitcoin.verification
import apps.bitcoin.verification
apps.bitcoin.verify_message
Expand Down Expand Up @@ -381,7 +379,7 @@
apps.workflow_handlers
import apps.workflow_handlers

if utils.BITCOIN_ONLY:
if not utils.BITCOIN_ONLY:
trezor.enums.BinanceOrderSide
import trezor.enums.BinanceOrderSide
trezor.enums.BinanceOrderType
Expand Down Expand Up @@ -436,6 +434,8 @@
import apps.binance.layout
apps.binance.sign_tx
import apps.binance.sign_tx
apps.bitcoin.sign_tx.zcash
import apps.bitcoin.sign_tx.zcash
apps.cardano
import apps.cardano
apps.cardano.address
Expand Down
3 changes: 2 additions & 1 deletion core/src/all_modules.py.mako
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ALTCOINS = (
"stellar",
"tezos",
"webauthn",
"zcash",
)
pyfiles = chain.from_iterable(sorted(SRCDIR.glob(p)) for p in PATTERNS)
Expand Down Expand Up @@ -78,7 +79,7 @@ ${import_name}
import ${import_name}
% endfor

if utils.BITCOIN_ONLY:
if not utils.BITCOIN_ONLY:
% for import_name in imports_altcoin:
${import_name}
import ${import_name}
Expand Down

0 comments on commit ee924c6

Please sign in to comment.