Skip to content

Commit

Permalink
don't max
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Oct 2, 2024
1 parent 6e28455 commit 8ad3d9d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Prettify } from './types/utils';
import { validateParentChain } from './types/ParentChain';
import { WithTokenBridgeCreatorAddressOverride } from './types/createTokenBridgeTypes';
import { getTokenBridgeCreatorAddress } from './utils/getTokenBridgeCreatorAddress';
import { createTokenBridgeDefaultRetryablesFees } from './constants';

export type CreateTokenBridgePrepareCustomFeeTokenApprovalTransactionRequestParams<
TChain extends Chain | undefined,
Expand All @@ -21,7 +22,7 @@ export type CreateTokenBridgePrepareCustomFeeTokenApprovalTransactionRequestPara
export async function createTokenBridgePrepareCustomFeeTokenApprovalTransactionRequest<
TChain extends Chain | undefined,
>({
amount = maxInt256,
amount,
nativeToken,
owner,
publicClient,
Expand All @@ -33,7 +34,7 @@ export async function createTokenBridgePrepareCustomFeeTokenApprovalTransactionR
address: nativeToken,
owner,
spender: tokenBridgeCreatorAddressOverride ?? getTokenBridgeCreatorAddress(publicClient),
amount,
amount: amount ?? createTokenBridgeDefaultRetryablesFees,
publicClient,
});

Expand Down

0 comments on commit 8ad3d9d

Please sign in to comment.