Skip to content

Expose fs_permissions for Solidity Test in Hardhat config #6452

Closed
@kanej

Description

@kanej

Initially reported on Telegram: https://t.me/c/2274028871/184

To allow for vm.readFile, Foundry requires one to add something like

fs_permissions = [
  { access = "read-write", path = "./" },
]

to one's foundry.toml. How do we achieve this in Hardhat 3?

Setting fs_permissions for the readFile cheatcode is supported in the underlying Solidity Test library (i.e. EDR's Solidity Test). However, it is not currently being exposed in hardhat.config.{js,ts}.

We need to update Hardhat 3's Solidity Test config to allow specifying fs permissions.

Metadata

Metadata

Assignees

Labels

status:readyThis issue is ready to be worked onv-nextA Hardhat v3 development task

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions