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");
|
.build("PrepareDepositRequest");
|
||||||
|
|
||||||
export interface PrepareDepositResponse {
|
export interface PrepareDepositResponse {
|
||||||
totalDepositCost: AmountJson;
|
totalDepositCost: AmountString;
|
||||||
effectiveDepositAmount: AmountJson;
|
effectiveDepositAmount: AmountString;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const codecForCreateDepositGroupRequest =
|
export const codecForCreateDepositGroupRequest =
|
||||||
|
@ -367,7 +367,10 @@ export async function prepareDepositGroup(
|
|||||||
payCoinSel,
|
payCoinSel,
|
||||||
);
|
);
|
||||||
|
|
||||||
return { totalDepositCost, effectiveDepositAmount };
|
return {
|
||||||
|
totalDepositCost: Amounts.stringify(totalDepositCost),
|
||||||
|
effectiveDepositAmount: Amounts.stringify(effectiveDepositAmount),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
export async function createDepositGroup(
|
export async function createDepositGroup(
|
||||||
ws: InternalWalletState,
|
ws: InternalWalletState,
|
||||||
|
Loading…
Reference in New Issue
Block a user