mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-02 14:18:59 +00:00
fix(contacts): sign address even when not shown on device
This commit is contained in:
parent
91ccaee4be
commit
632b02adab
@ -207,8 +207,6 @@ async def get_address(msg: GetAddress, keychain: Keychain, coin: CoinInfo) -> Ad
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
account = address_n_to_name_or_unknown(coin, address_n, script_type)
|
account = address_n_to_name_or_unknown(coin, address_n, script_type)
|
||||||
res = await sign_with_nostr(NostrSignEvent(address_n=[1,2,3,4], content=address))
|
|
||||||
signature = res.signature
|
|
||||||
await show_address(
|
await show_address(
|
||||||
address_short,
|
address_short,
|
||||||
address_qr=address,
|
address_qr=address,
|
||||||
@ -218,4 +216,8 @@ async def get_address(msg: GetAddress, keychain: Keychain, coin: CoinInfo) -> Ad
|
|||||||
chunkify=bool(msg.chunkify),
|
chunkify=bool(msg.chunkify),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not multisig:
|
||||||
|
res = await sign_with_nostr(NostrSignEvent(address_n=[1,2,3,4], content=address))
|
||||||
|
signature = res.signature
|
||||||
|
|
||||||
return Address(address=address, mac=mac, signature=signature)
|
return Address(address=address, mac=mac, signature=signature)
|
||||||
|
Loading…
Reference in New Issue
Block a user