Skip to content

Conversation

@nazreen
Copy link
Contributor

@nazreen nazreen commented Jan 16, 2026

There should be a helper to go from endpoint id to network name

Problem

  • No public utility to go from endpoint ID to chain ID, though there is one for going from endpoint ID to network name
  • getDefaultChainId (from network name to chain ID) exists in verify-contract but wasn't exported

Changes

  • Export getDefaultChainId from @layerzerolabs/verify-contract

Notes

  • Somehow we only store the mapping between chainkey and chain ID in the verify-contract package

How to use

import { getDefaultChainId } from '@layerzerolabs/verify-contract'                                            
                                                                                                                
getDefaultChainId('ethereum-mainnet')  // 1                                                                   
getDefaultChainId('polygon-mainnet')   // 137                                                                 
getDefaultChainId('hyperevm-mainnet')  // 999 

--only-oft-store should be a flag, not param

Problem

  • --only-oft-store required passing true as a value, which is verbose for a boolean flag.

Changes

  • Converted --only-oft-store from boolean param to a flag in createOFT.ts and setAuthority.ts
    across oft-solana and lzapp-migration examples.
  • Updated error messages, prompts, and README docs to use --only-oft-store (no true).

@github-actions
Copy link
Contributor

github-actions bot commented Jan 16, 2026

🧪 E2E Test Status

E2E tests are non-blocking and validate real blockchain interactions. Failures may occur due to network issues, RPC rate limits, or external service downtime.

Test Runs (Newest First):

  • Run #6607 - Passed - 2026-01-22 01:42 (UTC)
  • Run #6604 - Passed - 2026-01-21 23:56 (UTC)
  • Run #6571 - Passed - 2026-01-16 23:33 (UTC)

@nazreen
Copy link
Contributor Author

nazreen commented Jan 20, 2026

will collapse this into another PR

@nazreen nazreen changed the title param to flag QoL batch 2 Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant