You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/apps/management/apply_flags.py

12 lines
338 B

import storage.device
from storage.device import set_flags
from trezor import wire
from trezor.messages.Success import Success
async def apply_flags(ctx, msg):
if not storage.device.is_initialized():
raise wire.NotInitialized("Device is not initialized")
set_flags(msg.flags)
return Success(message="Flags applied")