This commit is contained in:
julian 2023-05-17 15:55:17 -06:00
parent dfc283c757
commit a3422696ba

View file

@ -89,7 +89,7 @@ String constructDerivePath({
case 0x80: // mainnet wif case 0x80: // mainnet wif
switch (derivePathType) { switch (derivePathType) {
case DerivePathType.bip44: case DerivePathType.bip44:
coinType = "0"; coinType = "145";
break; break;
case DerivePathType.eCash44: case DerivePathType.eCash44:
coinType = "899"; coinType = "899";
@ -558,16 +558,16 @@ class ECashWallet extends CoinServiceAPI
startingIndex, startingIndex,
DerivePathType.eCash44, DerivePathType.eCash44,
), ),
_generateAddressForChain( // _generateAddressForChain(
receiveChain, // receiveChain,
startingIndex, // startingIndex,
DerivePathType.bip44, // DerivePathType.bip44,
), // ),
_generateAddressForChain( // _generateAddressForChain(
changeChain, // changeChain,
startingIndex, // startingIndex,
DerivePathType.bip44, // DerivePathType.bip44,
), // ),
]); ]);
await db.putAddresses(initialAddresses); await db.putAddresses(initialAddresses);