Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyd-eth committed Aug 30, 2024
1 parent 059030d commit dc790c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/redux/hooks/useEditingDistributionLimit.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AddressZero } from '@ethersproject/constants'
import { ETH_TOKEN_ADDRESS } from 'constants/juiceboxTokens'
import { BigNumber } from 'ethers'
import { useDefaultJBETHPaymentTerminal } from 'packages/v2v3/hooks/defaultContracts/useDefaultJBETHPaymentTerminal'
Expand All @@ -9,7 +10,6 @@ import { useAppDispatch } from 'redux/hooks/useAppDispatch'
import { useAppSelector } from 'redux/hooks/useAppSelector'
import { editingV2ProjectActions } from 'redux/slices/editingV2Project'
import { fromWad, parseWad } from 'utils/format/formatNumber'
import { zeroAddress } from 'viem'

export interface ReduxDistributionLimit {
amount: BigNumber
Expand Down Expand Up @@ -60,7 +60,7 @@ export const useEditingDistributionLimit = (): [
dispatch(
editingV2ProjectActions.setFundAccessConstraints([
{
terminal: defaultJBETHPaymentTerminal?.address ?? zeroAddress,
terminal: defaultJBETHPaymentTerminal?.address ?? AddressZero,
token: ETH_TOKEN_ADDRESS,
distributionLimit: fromWad(input.amount),
distributionLimitCurrency,
Expand All @@ -76,7 +76,7 @@ export const useEditingDistributionLimit = (): [
const setDistributionLimitAmount = useCallback(
(input: BigNumber) => {
const currentFundAccessConstraint = fundAccessConstraints?.[0] ?? {
terminal: defaultJBETHPaymentTerminal?.address ?? zeroAddress,
terminal: defaultJBETHPaymentTerminal?.address ?? AddressZero,
token: ETH_TOKEN_ADDRESS,
distributionLimitCurrency: V2V3_CURRENCY_ETH.toString(),
overflowAllowance: '0',
Expand Down

0 comments on commit dc790c3

Please sign in to comment.