Skip to content

Commit

Permalink
fix deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBenc committed Aug 3, 2020
1 parent 1a9740c commit e12c487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/frontend/wallet/shelley-wallet.ts
Expand Up @@ -447,7 +447,8 @@ const ShelleyWallet = ({config, randomInputSeed, randomChangeSeed, cryptoProvide

async function getVisibleAddresses() {
const base = await myAddresses.baseExtAddrManager.discoverAddressesWithMeta()
return [...base]
const legacy = await myAddresses.legacyExtManager.discoverAddressesWithMeta()
return [...base, ...legacy]
}

async function verifyAddress(addr: string) {
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/wallet/shelley/shelley-transaction-planner.ts
Expand Up @@ -101,7 +101,7 @@ export function computeRequiredTxFee(
function computeRequiredDeposit(certs: Array<Cert>): Lovelace {
let deposit = 0
for (const {type} of certs) {
if (type === 0) deposit += 0
if (type === 0) deposit += 2000000
}
return deposit as Lovelace
}
Expand Down

0 comments on commit e12c487

Please sign in to comment.