Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Conversation

@92ikonostasov
Copy link

What this PR does

Adds a require check in setConfig(...) to ensure that the _config payload is not empty. This prevents accidental setting of empty configurations and improves overall contract robustness.

Why it's useful

  • Protects against misconfigurations or unintended empty payloads
  • Improves input validation in a critical configuration function
  • Aligned with best practices used throughout the LayerZero contracts

Implementation

Added:

require(_config.length > 0, "LayerZero: config payload cannot be empty");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant