Skip to content

Commit b57fb71

Browse files
committed
fix: use same outbound/inbound limits in solana as evm
1 parent 25a5c3f commit b57fb71

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

cli/src/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/** u64::MAX -- effectively unlimited, consistent with EVM and Sui defaults. */
2+
export const U64_MAX = 2n ** 64n - 1n;

cli/src/solana/deploy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import type { SolanaChains } from "@wormhole-foundation/sdk-solana";
1919
import { NTT, SolanaNtt } from "@wormhole-foundation/sdk-solana-ntt";
2020

2121
import { getSigner, type SignerType } from "../signers/getSigner";
22+
import { U64_MAX } from "../constants.js";
2223
import { handleDeploymentError } from "../error";
2324
import { ensureNttRoot } from "../validation";
2425
import { askForConfirmation } from "../prompts.js";
@@ -446,7 +447,7 @@ export async function deploySvm<N extends Network, C extends SolanaChains>(
446447
{
447448
mint: new PublicKey(token),
448449
mode,
449-
outboundLimit: 100000000n,
450+
outboundLimit: U64_MAX,
450451
...(mode === "burning" &&
451452
!mint.mintAuthority!.equals(tokenAuthority) && {
452453
multisigTokenAuthority: mint.mintAuthority!,

0 commit comments

Comments
 (0)