Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/utils/cashMethods.js
Show First 20 Lines • Show All 559 Lines • ▼ Show 20 Lines | |||||
export const isLegacyMigrationRequired = wallet => { | export const isLegacyMigrationRequired = wallet => { | ||||
// If the wallet does not have Path1899, | // If the wallet does not have Path1899, | ||||
// Or each Path1899, Path145, Path245 does not have a public key | // Or each Path1899, Path145, Path245 does not have a public key | ||||
// Then it requires migration | // Then it requires migration | ||||
if ( | if ( | ||||
!wallet.Path1899 || | !wallet.Path1899 || | ||||
!wallet.Path1899.publicKey || | !wallet.Path1899.publicKey || | ||||
!wallet.Path1899.hash160 || | |||||
!wallet.Path145.publicKey || | !wallet.Path145.publicKey || | ||||
!wallet.Path245.publicKey | !wallet.Path145.hash160 || | ||||
!wallet.Path245.publicKey || | |||||
!wallet.Path245.hash160 | |||||
) { | ) { | ||||
return true; | return true; | ||||
} | } | ||||
return false; | return false; | ||||
}; | }; | ||||
export const isExcludedUtxo = (utxo, utxoArray) => { | export const isExcludedUtxo = (utxo, utxoArray) => { | ||||
▲ Show 20 Lines • Show All 400 Lines • Show Last 20 Lines |