From 70f9c256f0c7dbc0efda960b9cec7846cfa84072 Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 11 Jun 2024 22:38:15 +0900 Subject: [PATCH] fix(subaccounts): correct incorrect type on `BalanceTransferParameters` (#937) --- packages/subaccounts/__tests__/__dataSets__/transfers.ts | 4 ++-- .../lib/types/parameters/balanceTransferParameters.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/subaccounts/__tests__/__dataSets__/transfers.ts b/packages/subaccounts/__tests__/__dataSets__/transfers.ts index baea6a29..e6076ad0 100644 --- a/packages/subaccounts/__tests__/__dataSets__/transfers.ts +++ b/packages/subaccounts/__tests__/__dataSets__/transfers.ts @@ -100,7 +100,7 @@ export default [ to: balanceTransfer.to, amount: `${balanceTransfer.amount}`, reference: balanceTransfer.reference, - } as BalanceTransferParameters, + }, ], ], responses: [ @@ -118,7 +118,7 @@ export default [ to: balanceTransfer.to, amount: `${balanceTransfer.amount}`, reference: balanceTransfer.reference, - } as BalanceTransferParameters, + }, ], error: false, expected: balanceTransfer, diff --git a/packages/subaccounts/lib/types/parameters/balanceTransferParameters.ts b/packages/subaccounts/lib/types/parameters/balanceTransferParameters.ts index 57f63a7e..9d523098 100644 --- a/packages/subaccounts/lib/types/parameters/balanceTransferParameters.ts +++ b/packages/subaccounts/lib/types/parameters/balanceTransferParameters.ts @@ -15,7 +15,7 @@ export type BalanceTransferParameters = { /** * The amount of balance to transfer. */ - amount: string; + amount: number; /** * (Optional) A reference for the balance transfer.