Skip to content

fix: correct type mismatch in LibVariable documentation example - #725

Merged
DaniPopes merged 2 commits into
foundry-rs:masterfrom
GarmashAlex:master
Dec 22, 2025
Merged

fix: correct type mismatch in LibVariable documentation example#725
DaniPopes merged 2 commits into
foundry-rs:masterfrom
GarmashAlex:master

Conversation

@GarmashAlex

@GarmashAlex GarmashAlex commented Sep 10, 2025

Copy link
Copy Markdown
Contributor

Fix incorrect variable type declaration in LibVariable.sol documentation example. Changed 'string[] memory admins' to 'address[] memory admins' to match the return type of toAddressArray() function. The whitelisted_admins configuration variable is defined in the [mainnet.address] section and parsed as an address array, making this a type safety issue in the documentation.

@DaniPopes
DaniPopes enabled auto-merge (squash) December 22, 2025 07:17
@DaniPopes
DaniPopes merged commit a906201 into foundry-rs:master Dec 22, 2025
25 checks passed
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.

2 participants