Cyfrin / foundry-nft-cu

21 stars 22 forks source link

script failed: the path broadcast is not allowed to be accessed for read operations #26

Closed JayAlwaysCodes closed 5 months ago

JayAlwaysCodes commented 6 months ago

Hello, I'm trying to run the MintBasicNft function but i keep getting this error

  [6857] MintBasicNft::run()
    ├─ [3925] DevOpsTools::get_most_recent_deployment("BasicNft", 11155111 [1.115e7]) [delegatecall]
    │   ├─ [0] VM::readDir("broadcast", 3) [staticcall]
    │   │   └─ ← the path broadcast is not allowed to be accessed for read operations
    │   └─ ← the path broadcast is not allowed to be accessed for read operations
    └─ ← the path broadcast is not allowed to be accessed for read operations

Error: 
script failed: the path broadcast is not allowed to be accessed for read operations
JayAlwaysCodes commented 6 months ago

added this code to my foundry.toml fs_permissions = [{ access = "read", path = "./broadcast" }, {access = "read", path = "./Images/"}]

PatrickAlphaC commented 5 months ago

Closing! I think this is in the repo already.

JayAlwaysCodes commented 5 months ago

Yeah, have resolved it

On Thu, Mar 28, 2024, 16:02 Patrick Collins @.***> wrote:

Closing! I think this is in the repo already.

— Reply to this email directly, view it on GitHub https://github.com/Cyfrin/foundry-nft-f23/issues/26#issuecomment-2025443080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVWHAL3ZPB442VGNMQBYW33Y2QWIBAVCNFSM6AAAAABFCZ2DLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGQ2DGMBYGA . You are receiving this because you authored the thread.Message ID: @.***>