lz-modify-enforced-options

Modify LayerZero enforced options for OFT/lockbox contracts to adjust minimum gas.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/dhruvinparikh/skills --skill lz-modify-enforced-options
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lz-modify-enforced-options
Source: https://github.com/dhruvinparikh/skills/tree/main/lz-modify-enforced-options
Command: npx skills add https://github.com/dhruvinparikh/skills --skill lz-modify-enforced-options

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses issues arising from changing gas costs on destination chains by allowing proactive adjustment of LayerZero's enforcedOptions, ensuring cross-chain transactions continue to succeed.

Core Features & Use Cases

  • Dynamic Gas Adjustment: Update minimum gas requirements for lzReceive execution on destination chains.
  • Troubleshooting Failures: Resolve cross-chain transaction failures caused by insufficient gas.
  • Proactive Maintenance: Adapt to network upgrades or changing cost structures before they impact operations.
  • Use Case: If a destination chain like Arbitrum increases its gas fees due to an upgrade, this Skill can be used to update the enforcedOptions on the source chain's OFT/lockbox to accommodate the new costs, preventing future transfer failures.

Quick Start

Use the lz-modify-enforced-options skill to update the enforced options for the Ethereum to Arbitrum pathway.

Frequently Asked Questions about lz-modify-enforced-options

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do my LayerZero cross-chain transactions fail after a destination chain gas upgrade?

LayerZero cross-chain transactions fail when destination chains like Arbitrum increase gas costs, leaving existing enforcedOptions with insufficient minimum gas for lzReceive execution. Updating source chain OFT contracts prevents these failures.

How do I update LayerZero enforcedOptions for OFT contracts on source chains?

To update LayerZero enforcedOptions, execute Foundry scripts to modify minimum gas requirements for lzReceive on destination chains. Transaction deployment requires a Safe multisig to authorize the updated configuration on the source chain.

Do I need Foundry and Safe multisig to adjust LayerZero gas limits?

Yes, Foundry tools are required to execute the modification scripts for adjusting LayerZero gas limits. A Safe multisig is required to securely deploy and authorize the enforcedOptions update transactions on the source chain.

What are LayerZero enforcedOptions and when should I modify them?

LayerZero enforcedOptions define the minimum gas allocated for lzReceive execution on destination chains. Modify them proactively when destination networks undergo upgrades or gas cost structures change to ensure uninterrupted cross-chain transfers.

Can I resolve LayerZero OFT transfer failures by changing gas limits on lockbox contracts?

Yes, you can resolve OFT transfer failures by modifying enforcedOptions on lockbox contracts on the source chain. This adjusts the minimum gas for lzReceive execution on the destination chain to accommodate changing gas costs.