From 84da4c0c3228a7c391d160f0bdd26db70ba933bb Mon Sep 17 00:00:00 2001 From: nazreen <10964594+nazreen@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:42:59 -0800 Subject: [PATCH] default confirmations --- .changeset/giant-schools-matter.md | 5 +++++ examples/oft-solana/tasks/solana/debug.ts | 24 +++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 .changeset/giant-schools-matter.md diff --git a/.changeset/giant-schools-matter.md b/.changeset/giant-schools-matter.md new file mode 100644 index 0000000000..276c883db0 --- /dev/null +++ b/.changeset/giant-schools-matter.md @@ -0,0 +1,5 @@ +--- +"@layerzerolabs/oft-solana-example": patch +--- + +update Solana OFT debug script to state when default confirmations is used diff --git a/examples/oft-solana/tasks/solana/debug.ts b/examples/oft-solana/tasks/solana/debug.ts index ba8e29ec21..2e422af07d 100644 --- a/examples/oft-solana/tasks/solana/debug.ts +++ b/examples/oft-solana/tasks/solana/debug.ts @@ -391,10 +391,14 @@ function printOAppReceiveConfigs( // Print each property in the object DebugLogger.keyValue(`${oAppReceiveConfigIndexesToKeys[i]}`, '', 2) for (const [propKey, propVal] of Object.entries(item)) { - const valueDisplay = - (propKey === 'requiredDVNs' || propKey === 'optionalDVNs') && Array.isArray(propVal) - ? formatDvnAddresses(propVal as string[], metadata, chainKey) - : String(propVal) + let valueDisplay: string + if ((propKey === 'requiredDVNs' || propKey === 'optionalDVNs') && Array.isArray(propVal)) { + valueDisplay = formatDvnAddresses(propVal as string[], metadata, chainKey) + } else if (propKey === 'confirmations' && String(propVal) === '0') { + valueDisplay = '0 (Use Pathway Defaults)' + } else { + valueDisplay = String(propVal) + } DebugLogger.keyValue(`${propKey}`, valueDisplay, 3) } } else { @@ -427,10 +431,14 @@ function printOAppSendConfigs( if (typeof item === 'object' && item !== null) { DebugLogger.keyValue(`${sendOappConfigIndexesToKeys[i]}`, '', 2) for (const [propKey, propVal] of Object.entries(item)) { - const valueDisplay = - (propKey === 'requiredDVNs' || propKey === 'optionalDVNs') && Array.isArray(propVal) - ? formatDvnAddresses(propVal as string[], metadata, chainKey) - : String(propVal) + let valueDisplay: string + if ((propKey === 'requiredDVNs' || propKey === 'optionalDVNs') && Array.isArray(propVal)) { + valueDisplay = formatDvnAddresses(propVal as string[], metadata, chainKey) + } else if (propKey === 'confirmations' && String(propVal) === '0') { + valueDisplay = '0 (Use Pathway Defaults)' + } else { + valueDisplay = String(propVal) + } DebugLogger.keyValue(`${propKey}`, valueDisplay, 3) } } else {