diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-11 20:43:19 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-11 20:43:19 +0530 |
commit | 4c614429a0602557273c4783dc0df54ba3687200 (patch) | |
tree | 080df8bafbb77678289bbc397d7be2111747a6aa /src/operations/tip.ts | |
parent | 0240096cf663df982f0f3e0b9d46407ae7965c96 (diff) | |
download | wallet-core-4c614429a0602557273c4783dc0df54ba3687200.tar.gz wallet-core-4c614429a0602557273c4783dc0df54ba3687200.tar.bz2 wallet-core-4c614429a0602557273c4783dc0df54ba3687200.zip |
also create key material for planchets in smaller bites
Diffstat (limited to 'src/operations/tip.ts')
-rw-r--r-- | src/operations/tip.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/operations/tip.ts b/src/operations/tip.ts index 27956e26e..f584fc502 100644 --- a/src/operations/tip.ts +++ b/src/operations/tip.ts @@ -112,8 +112,7 @@ export async function getTipStatus( totalWithdrawCost: selectedDenoms.totalWithdrawCost, selectedDenoms: selectedDenoms.selectedDenoms.map((x) => { return { - countAllocated: x.count, - countPlanchetCreated: x.count, + count: x.count, denomPubHash: x.denom.denomPubHash, }; }), @@ -213,7 +212,7 @@ async function processTipImpl( if (!denom) { throw Error("denom does not exist anymore"); } - for (let i = 0; i < sd.countAllocated; i++) { + for (let i = 0; i < sd.count; i++) { const r = await ws.cryptoApi.createTipPlanchet(denom); planchets.push(r); } |