From c3b54b90ca9b9071fb12fdbcc3cf81a090172ff1 Mon Sep 17 00:00:00 2001 From: garageinc <9-b-rinat@rambler.ru> Date: Mon, 16 Dec 2024 17:41:39 +0300 Subject: [PATCH] chore: review proposals --- .../hooks/use-proposal-actions/use-proposal-actions.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/shared/src/hooks/use-proposal-actions/use-proposal-actions.ts b/libs/shared/src/hooks/use-proposal-actions/use-proposal-actions.ts index 50c5a8423..da202af81 100644 --- a/libs/shared/src/hooks/use-proposal-actions/use-proposal-actions.ts +++ b/libs/shared/src/hooks/use-proposal-actions/use-proposal-actions.ts @@ -25,8 +25,8 @@ interface ProposalActionsHook { ) => Promise; deposit: ( proposalId: number, - amount: number, - balance?: number, + amount: bigint, + balance?: bigint, memo?: string, estimatedFee?: EstimatedFeeResponse, ) => Promise; @@ -116,8 +116,8 @@ export function useProposalActions(): ProposalActionsHook { const handleDeposit = useCallback( async ( proposalId: number, - amount: number, - balance?: number, + amount: bigint, + balance?: bigint, memo = '', estimatedFee?: EstimatedFeeResponse, ) => { @@ -128,7 +128,7 @@ export function useProposalActions(): ProposalActionsHook { const fee = getFee(estimatedFee); const depositParams: MessageMsgDepositParams = { proposalId, - deposit: getAmountIncludeFee(amount, balance ?? 0, fee), + deposit: getAmountIncludeFee(amount, balance ?? 0n, fee), }; const msg = createTxMsgDeposit( haqqChain,