Cyfrin / foundry-nft-cu

22 stars 25 forks source link

Encountring error with "make mint " #30

Closed ely67 closed 6 months ago

ely67 commented 6 months ago

Hello everyone,

I'm reaching out because I've encountered an error while running the command "make mint ARGS="--network sepolia"". The error message I received is as follows:

make mint ARGS="--network sepolia"
Traces:
  [1131599] → new DevOpsTools@0x4DB574C3D6D412a9eF15B4DDA4442a59ce4877cc
    └─ ← 5710 bytes of code
  [228575] → new MintBasicNft@0x5b73C5498c1E3b4dbA84de0F1833c4a029d90519
    └─ ← 1080 bytes of code
  [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
make: *** [Makefile:45: mint] Error 1
PatrickAlphaC commented 6 months ago

Ah, could you please add this to your foundry.toml?

fs_permissions = [
    { access = "read", path = "./images/" },
    { access = "read", path = "./broadcast" },
]
ely67 commented 6 months ago

Thank you .It solved the problem

On Mon, May 6, 2024, 4:49 PM Patrick Collins @.***> wrote:

Ah, could you please add this to your foundry.toml?

fs_permissions = [ { access = "read", path = "./images/" }, { access = "read", path = "./broadcast" }, ]

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