Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function getTrezorInfo() {
const {payload: features} = await TrezorConnect.getFeatures()
const fwVersion = `${features.major_version}.${features.minor_version}.${features.patch_version}`
return {
model: features.model,
fwVersion,
}
}