Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class TrezorAuthService implements IAuthService {
required AuthOptions options,
}) async {
// Throw exception if PrivateKeyPolicy is NOT trezor
if (options.privKeyPolicy != PrivateKeyPolicy.trezor) {
if (options.privKeyPolicy != const PrivateKeyPolicy.trezor()) {
throw AuthException(
'TrezorAuthService only supports Trezor private key policy',
type: AuthExceptionType.generalAuthError,
Expand Down Expand Up @@ -226,7 +226,7 @@ class TrezorAuthService implements IAuthService {
Mnemonic? mnemonic,
}) async {
// Throw exception if PrivateKeyPolicy is NOT trezor
if (options.privKeyPolicy != PrivateKeyPolicy.trezor) {
if (options.privKeyPolicy != const PrivateKeyPolicy.trezor()) {
throw AuthException(
'TrezorAuthService only supports Trezor private key policy',
type: AuthExceptionType.generalAuthError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class PubkeyStrategyFactory {
final privKeyPolicy = kdfUser.walletId.authOptions.privKeyPolicy;

switch (privKeyPolicy) {
case PrivateKeyPolicy.trezor:
case const PrivateKeyPolicy.trezor():
return TrezorHDWalletStrategy(kdfUser: kdfUser);
case PrivateKeyPolicy.contextPrivKey:
case const PrivateKeyPolicy.contextPrivKey():
return ContextPrivKeyHDWalletStrategy(kdfUser: kdfUser);
}
}
Expand Down
Loading