summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/amounts.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-12 16:02:58 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-12 16:02:58 +0530
commit8d7b171d02e0ab4d5da7dc81eaea6c27106dbc57 (patch)
tree1ee7138d008cf8dcf2cd2a9f5a646701932d1ee5 /packages/taler-wallet-core/src/util/amounts.ts
parent56f5a1e3abe2679b4913ac87ff82860bb9675823 (diff)
downloadwallet-core-8d7b171d02e0ab4d5da7dc81eaea6c27106dbc57.tar.gz
wallet-core-8d7b171d02e0ab4d5da7dc81eaea6c27106dbc57.tar.bz2
wallet-core-8d7b171d02e0ab4d5da7dc81eaea6c27106dbc57.zip
rename for consistency
Diffstat (limited to 'packages/taler-wallet-core/src/util/amounts.ts')
-rw-r--r--packages/taler-wallet-core/src/util/amounts.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/util/amounts.ts b/packages/taler-wallet-core/src/util/amounts.ts
index 33faa868e..2a8c47905 100644
--- a/packages/taler-wallet-core/src/util/amounts.ts
+++ b/packages/taler-wallet-core/src/util/amounts.ts
@@ -22,7 +22,7 @@
* Imports.
*/
import {
- makeCodecForObject,
+ buildCodecForObject,
codecForString,
codecForNumber,
Codec,
@@ -68,13 +68,13 @@ export interface AmountJson {
}
export const codecForAmountJson = (): Codec<AmountJson> =>
- makeCodecForObject<AmountJson>()
- .property("currency", codecForString)
- .property("value", codecForNumber)
- .property("fraction", codecForNumber)
+ buildCodecForObject<AmountJson>()
+ .property("currency", codecForString())
+ .property("value", codecForNumber())
+ .property("fraction", codecForNumber())
.build("AmountJson");
-export const codecForAmountString = (): Codec<AmountString> => codecForString;
+export const codecForAmountString = (): Codec<AmountString> => codecForString();
/**
* Result of a possibly overflowing operation.