diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-02 13:53:32 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-02 13:53:32 -0300 |
commit | e54df1f167333de654a9a98545bae8ef495d6e52 (patch) | |
tree | 87c65eba4a84b45cb24c8f443cd8ffd8912d4d3d /packages | |
parent | 372ddff91798cf9247eaf045f0d0ce33694fd880 (diff) | |
download | wallet-core-e54df1f167333de654a9a98545bae8ef495d6e52.tar.xz |
match the exchange spec
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index eaba1ae3d..d8fdc2519 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -1922,22 +1922,13 @@ export interface BatchDepositSuccess { // Array of deposit confirmation signatures from the exchange // Entries must be in the same order the coins were given // in the batch deposit request. - exchange_sigs: DepositConfirmationSignature[]; + exchange_sig: EddsaSignatureString; } -export const codecForDepositConfirmationSignature = - (): Codec<DepositConfirmationSignature> => - buildCodecForObject<DepositConfirmationSignature>() - .property("exchange_sig", codecForString()) - .build("DepositConfirmationSignature"); - export const codecForBatchDepositSuccess = (): Codec<BatchDepositSuccess> => buildCodecForObject<BatchDepositSuccess>() .property("exchange_pub", codecForString()) - .property( - "exchange_sigs", - codecForList(codecForDepositConfirmationSignature()), - ) + .property("exchange_sig", codecForString()) .property("exchange_timestamp", codecForTimestamp) .property("transaction_base_url", codecOptional(codecForString())) .build("BatchDepositSuccess"); |