Cyfrin / foundry-nft-cu

21 stars 22 forks source link

evm::cheatcodes: non-empty stderr args #10

Closed joarder97 closed 1 year ago

joarder97 commented 1 year ago

At 8:33 when I'm trying to execute make mint ARGS="--network sepolia"

Error: `2023-09-09T06:24:53.824457Z ERROR apply:ext: evm::cheatcodes: non-empty stderr args=["bash", "/c/Users/masudul.ba/Desktop/solidity-with-foundry/nft/lib/foundry-devops/src/get_recent_deployment.sh", "BasicNft", "11155111", "/c/Users/masudul.ba/Desktop/solidity-with-foundry/nft//broadcast"] stderr="/c/Users/masudul.ba/Desktop/solidity-with-foundry/nft/lib/foundry-devops/src/get_recent_deployment.sh: line 31: jq: command not found\n/c/Users/masudul.ba/Desktop/solidity-with-foundry/nft/lib/foundry-devops/src/get_recent_deployment.sh: line 33: jq: command not found\n/c/Users/masudul.ba/Desktop/solidity-with-foundry/nft/lib/foundry-devops/src/get_recent_deployment.sh: line 35: ((: i<: syntax error: operand expected (error token is \"<\")\n" Traces: [639098] → new DevOpsTools@0x0Dd701ADE18B201cDf9D6799682C01dbf8fF9Fb3 └─ ← 3192 bytes of code

[249308] → new MintBasicNft@0x5b73C5498c1E3b4dbA84de0F1833c4a029d90519 └─ ← 1024 bytes of code

[59711] MintBasicNft::run() ├─ [35699] DevOpsTools::e374cdf1(00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000aa36a7000000000000000000000000000000000000000000000000000000000000000842617369634e6674000000000000000000000000000000000000000000000000) [delegatecall] │ ├─ [0] VM::ffi([pwd]) │ │ └─ ← 0x2f632f55736572732f6d61737564756c2e62612f4465736b746f702f736f6c69646974792d776974682d666f756e6472792f6e6674 │ ├─ [0] VM::toString(11155111 [1.115e7]) [staticcall] │ │ └─ ← 0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000083131313535313131000000000000000000000000000000000000000000000000 │ ├─ [0] VM::ffi([bash, /c/Users/masudul.ba/Desktop/solidity-with-foundry/nft/lib/foundry-devops/src/get_recent_deployment.sh, BasicNft, 11155111, /c/Users/masudul.ba/Desktop/solidity-with-foundry/nft//broadcast]) │ │ └─ ← 0x0000000000000000000000000000000000000000 │ ├─ [0] console::log(Return Data:) [staticcall] │ │ └─ ← () │ ├─ [0] console::log(0x0000000000000000000000000000000000000000) [staticcall] │ │ └─ ← () │ └─ ← 0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000144e6f20636f6e7472616374206465706c6f796564000000000000000000000000 └─ ← "No contract deployed"

== Logs == Return Data: 0x0000000000000000000000000000000000000000 Error: No contract deployed

make: *** [Makefile:55: mint] Error 1`

How to solve this issue?

joarder97 commented 1 year ago

Got the solve: curl -L -o /usr/bin/jq.exe https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe Just install jq and then execute again