mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
fix spending when mweb is disabled
This commit is contained in:
parent
87ed8ebc12
commit
062edc1035
1 changed files with 8 additions and 2 deletions
|
@ -1062,8 +1062,14 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
||||||
try {
|
try {
|
||||||
var creds;
|
var creds;
|
||||||
if (!mwebEnabled) {
|
if (!mwebEnabled) {
|
||||||
creds = (credentials as BitcoinTransactionCredentials);
|
BitcoinTransactionCredentials btcCreds = (credentials as BitcoinTransactionCredentials);
|
||||||
creds.coinTypeToSpendFrom = UnspentCoinType.nonMweb;
|
// sets unspent coin type to nonMweb:
|
||||||
|
creds = BitcoinTransactionCredentials(
|
||||||
|
btcCreds.outputs,
|
||||||
|
priority: btcCreds.priority,
|
||||||
|
feeRate: btcCreds.feeRate,
|
||||||
|
coinTypeToSpendFrom: UnspentCoinType.nonMweb,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
creds = credentials;
|
creds = credentials;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue