-
Notifications
You must be signed in to change notification settings - Fork 250
CW-1099-Add-Doge-coin-to-Cake-Wallet #2396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Updated the isElectrum getter to include WalletType.dogecoin, ensuring Dogecoin wallets are correctly identified as Electrum-compatible.
@@ -489,6 +494,9 @@ abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store { | |||
case WalletType.bitcoinCash: | |||
addBitcoinCashAddressTypes(); | |||
break; | |||
case WalletType.dogecoin: | |||
addBitcoinCashAddressTypes(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer if we rename the function to addP2PKHAddressTypes
then
@@ -44,6 +44,7 @@ abstract class AdvancedPrivacySettingsViewModelBase with Store { | |||
|
|||
case WalletType.bitcoin: | |||
case WalletType.litecoin: | |||
case WalletType.dogecoin: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should always be true like bitcoincash as this won't have electrum seed type
@@ -252,6 +253,8 @@ abstract class WalletKeysViewModelBase with Store { | |||
return 'zano-wallet'; | |||
case WalletType.decred: | |||
return 'decred-wallet'; | |||
case WalletType.dogecoin: | |||
return 'dogecoin-wallet'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be added in info.plistBase
scripts/ios/app_config.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about other platforms? macos, windows and linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be in gitignore
required Box<UnspentCoinsInfo> unspentCoinsInfo, | ||
required Uint8List seedBytes, | ||
required EncryptionFileUtils encryptionFileUtils, | ||
String derivationPath = "m/44'/3'/0'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
String derivationPath = "m/44'/3'/0'", |
initialAddresses: snp?.addresses.map((addr) { | ||
try { | ||
return BitcoinAddressRecord( | ||
addr.address, | ||
index: addr.index, | ||
isHidden: addr.isHidden, | ||
name: addr.name, | ||
type: P2pkhAddressType.p2pkh, | ||
network: DogecoinNetwork.mainnet, | ||
); | ||
} catch (_) { | ||
return BitcoinAddressRecord( | ||
addr.address, | ||
index: addr.index, | ||
isHidden: addr.isHidden, | ||
name: addr.name, | ||
type: P2pkhAddressType.p2pkh, | ||
network: DogecoinNetwork.mainnet, | ||
); | ||
} | ||
}).toList(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was for bitcoin cash for a reason, but here I believe it can be just snp?.addresses
like litecoin, right?
Issue Number (if Applicable): Fixes #
Description
Please include a summary of the changes and which issue is fixed / feature is added.
Pull Request - Checklist