wallet-core: use string amounts for deposit response
This commit is contained in:
parent
780eb20227
commit
78b4ab19a3
@ -1643,8 +1643,8 @@ export const codecForPrepareDepositRequest = (): Codec<PrepareDepositRequest> =>
|
||||
.build("PrepareDepositRequest");
|
||||
|
||||
export interface PrepareDepositResponse {
|
||||
totalDepositCost: AmountJson;
|
||||
effectiveDepositAmount: AmountJson;
|
||||
totalDepositCost: AmountString;
|
||||
effectiveDepositAmount: AmountString;
|
||||
}
|
||||
|
||||
export const codecForCreateDepositGroupRequest =
|
||||
|
@ -367,7 +367,10 @@ export async function prepareDepositGroup(
|
||||
payCoinSel,
|
||||
);
|
||||
|
||||
return { totalDepositCost, effectiveDepositAmount };
|
||||
return {
|
||||
totalDepositCost: Amounts.stringify(totalDepositCost),
|
||||
effectiveDepositAmount: Amounts.stringify(effectiveDepositAmount),
|
||||
};
|
||||
}
|
||||
export async function createDepositGroup(
|
||||
ws: InternalWalletState,
|
||||
|
Loading…
Reference in New Issue
Block a user