Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cli/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/** u64::MAX -- effectively unlimited, consistent with EVM and Sui defaults. */
export const U64_MAX = 2n ** 64n - 1n;
3 changes: 2 additions & 1 deletion cli/src/solana/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import type { SolanaChains } from "@wormhole-foundation/sdk-solana";
import { NTT, SolanaNtt } from "@wormhole-foundation/sdk-solana-ntt";

import { getSigner, type SignerType } from "../signers/getSigner";
import { U64_MAX } from "../constants.js";
import { handleDeploymentError } from "../error";
import { ensureNttRoot } from "../validation";
import { askForConfirmation } from "../prompts.js";
Expand Down Expand Up @@ -446,7 +447,7 @@ export async function deploySvm<N extends Network, C extends SolanaChains>(
{
mint: new PublicKey(token),
mode,
outboundLimit: 100000000n,
outboundLimit: U64_MAX,
...(mode === "burning" &&
!mint.mintAuthority!.equals(tokenAuthority) && {
multisigTokenAuthority: mint.mintAuthority!,
Expand Down
Loading