Skip to content

Commit

Permalink
chore: review proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
GarageInc committed Dec 16, 2024
1 parent 0f5e9fb commit c3b54b9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ interface ProposalActionsHook {
) => Promise<BroadcastTxResponse>;
deposit: (
proposalId: number,
amount: number,
balance?: number,
amount: bigint,
balance?: bigint,
memo?: string,
estimatedFee?: EstimatedFeeResponse,
) => Promise<BroadcastTxResponse>;
Expand Down Expand Up @@ -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,
) => {
Expand All @@ -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,
Expand Down

0 comments on commit c3b54b9

Please sign in to comment.