diff options
author | Florian Dold <florian@dold.me> | 2024-03-05 10:30:25 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-05 10:30:30 +0100 |
commit | 63aedafd841f3a3d7d3b7974d4e5b8fbd02afd3d (patch) | |
tree | 98a92ffb670e63f2253ee9b2a068f7234634eda2 /packages/taler-harness/src/harness/denomStructures.ts | |
parent | 187031b9336e3c81aaa05c79e345adf5ac997980 (diff) | |
download | wallet-core-63aedafd841f3a3d7d3b7974d4e5b8fbd02afd3d.tar.xz |
wallet-core: have balance item even on zero balance
Also add a test for this.
Diffstat (limited to 'packages/taler-harness/src/harness/denomStructures.ts')
-rw-r--r-- | packages/taler-harness/src/harness/denomStructures.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-harness/src/harness/denomStructures.ts b/packages/taler-harness/src/harness/denomStructures.ts index b12857c7e..2d5e719b0 100644 --- a/packages/taler-harness/src/harness/denomStructures.ts +++ b/packages/taler-harness/src/harness/denomStructures.ts @@ -136,7 +136,7 @@ export function makeNoFeeCoinConfig(curr: string): CoinConfig[] { const ct = 2 ** i; const unit = Math.floor(ct / 100); - const cent = ct % 100; + const cent = `${ct % 100}`.padStart(2, "0"); cc.push({ cipher: "RSA", |