Skip to content

Commit

Permalink
Refactor: Use constant for max uint256 value
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubcolony committed Aug 29, 2024
1 parent e8c2768 commit 5118650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redux/sagas/utils/expendituresMulticall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ColonyRole,
getPermissionProofs,
} from '@colony/colony-js';
import { type BigNumberish, utils, BigNumber } from 'ethers';
import { type BigNumberish, utils, BigNumber, constants } from 'ethers';

import { type ExpenditurePayoutFieldValue } from '~types/expenditures.ts';
import { type Expenditure } from '~types/graphql.ts';
Expand All @@ -22,7 +22,7 @@ const EXPENDITURESLOTS_SLOT = toB32(BigNumber.from(26));
const EXPENDITURESLOT_RECIPIENT = toB32(BigNumber.from(0));
const EXPENDITURESLOT_CLAIMDELAY = toB32(BigNumber.from(1));

export const MAX_CLAIM_DELAY_VALUE = BigNumber.from(2).pow(128).sub(1);
export const MAX_CLAIM_DELAY_VALUE = constants.MaxUint256;

interface GetEditLockedExpenditureMulticallDataParams {
expenditure: Expenditure;
Expand Down

0 comments on commit 5118650

Please sign in to comment.